PsiClassType (@NotNull String fqName, @NotNull GlobalSearchScope resolveScope) { if (ourPopularClasses.contains(fqName)) { PsiClass result = JavaPsiFacade.getInstance(myProject).findClass(fqName, resolveScope); if (result != null) { return JavaPsiFacade.getElementFactory(myProject).createType(result); } } return JavaPsiFacade.getElementFactory(myProject).createTypeByFQClassName(fqName, resolveScope); }