boolean (@NotNull final PsiElement element) { if (!(element instanceof PsiPackage)) { return false; } final String qName = ((PsiPackage)element).getQualifiedName().replace('.', '/'); final String rangeText = getRangeText(); return qName.equals(rangeText); }