String () { PsiElement element = getElement(); if (element != null) { if (element instanceof PsiVariable) { return ((PsiVariable)element).getName(); } else if (element instanceof PsiMethod) { return ((PsiMethod)element).getName() + "()"; } else if (element instanceof PsiClass) { PsiIdentifier identifier = ((PsiClass)element).getNameIdentifier(); if (identifier == null) return ""; return identifier.getText(); } } return super.toString(); }