boolean (@NotNull PsiJavaFile file, PsiClass curRefClass) { if (curRefClass != null) { String curRefClassQualifiedName = curRefClass.getQualifiedName(); return curRefClassQualifiedName != null && ArrayUtil.find(file.getImplicitlyImportedPackages(), StringUtil.getPackageName(curRefClassQualifiedName)) < 0; } return false; }