String (@NotNull PsiElement element, boolean useFullName) { if (element instanceof PsiNamedElement) { final String name = ((PsiNamedElement)element).getName(); if (name != null) { return name; } } return ""; }