boolean (@NotNull PsiClass candidateClass) { if (!CommonClassNames.JAVA_LANG_OBJECT_SHORT.equals(candidateClass.getName())) { return false; } PsiElement parent = candidateClass.getParent(); return parent instanceof PsiJavaFile && CommonClassNames.DEFAULT_PACKAGE.equals(((PsiJavaFile)parent).getPackageName()); }