unify IsPattern and IsImport enum in show_candidates
#102913
Merged
IsPattern and IsImport enum in show_candidates
#102913