boolean (@NotNull PsiElement element) { if (element instanceof PsiPackage) { return getText().equals(((PsiPackage)element).getQualifiedName()); } else if (element instanceof PsiClass) { return getText().equals(ClassUtil.getJVMClassName((PsiClass)element)); } return false; }