return annotation.getContainingFile().getName() + ": @" + annotation.getQualifiedName();
}
}
else if (psiElement instanceof NavigationItem) {
final NavigationItem navigationItem = (NavigationItem)psiElement;
final ItemPresentation presentation = navigationItem.getPresentation();
if (presentation != null) {
return presentation.getPresentableText();
}
}
return psiElement.toString();
}