String () { if (myElement instanceof ShFunctionDefinition) { return getFunctionName((ShFunctionDefinition) myElement); } else if (myElement instanceof ShFile) { return ((ShFile) myElement).getName(); } else if (myElement instanceof PsiNamedElement) return ((PsiNamedElement) myElement).getName(); throw new AssertionError(myElement.getClass().getName()); }