List<PsiClass> (final String name, final boolean checkBoxState, final String pattern, final GlobalSearchScope searchScope) { final PsiShortNamesCache cache = PsiShortNamesCache.getInstance(getProject()); PsiClass[] classes = DumbModeAccessType.RELIABLE_DATA_ONLY.ignoreDumbMode(() -> { return cache .getClassesByName(name, checkBoxState ? searchScope : GlobalSearchScope.projectScope(getProject()).intersectWith(searchScope)); }); return List.of(classes); }