PsiClass (Module module, @NonNls @NotNull String iconClass, boolean isQualifiedFqn) { final String adjustedIconClassFqn; if (isQualifiedFqn) { adjustedIconClassFqn = iconClass; } else { adjustedIconClassFqn = ALL_ICONS_NAME.equals(iconClass) ? ALL_ICONS_FQN : ICONS_PACKAGE_PREFIX + iconClass; } GlobalSearchScope iconSearchScope = isQualifiedFqn ? GlobalSearchScope.moduleRuntimeScope(module, false) : GlobalSearchScope.allScope(module.getProject()); return JavaPsiFacade.getInstance(module.getProject()).findClass(adjustedIconClassFqn, iconSearchScope); }