boolean (@NotNull PsiFile placeFile, @NotNull PsiClass aClass) { if (JavaCompletionUtil.isInExcludedPackage(aClass, false)) { return false; } String qName = aClass.getQualifiedName(); if (qName != null) { //filter local classes if (qName.indexOf('.') == -1 || !PsiNameHelper.getInstance(placeFile.getProject()).isQualifiedName(qName)) return false; return ImportFilter.shouldImport(placeFile, qName); } return false; }