String (@NotNull PsiElement sourceElement, @Nullable String name, int length, boolean finished) { ItemPresentation presentation = ((NavigationItem)sourceElement).getPresentation(); String fullName; if (presentation == null) { fullName = name; } else { PsiElement container = getContainer(sourceElement); ItemPresentation containerPresentation = container == null || container instanceof PsiFile ? null : ((NavigationItem)container).getPresentation(); String containerText = containerPresentation == null ? null : containerPresentation.getPresentableText(); fullName = (containerText == null ? "" : containerText+".") + presentation.getPresentableText(); } return CodeInsightBundle.message("goto.implementation.chooserTitle", fullName == null ? "unnamed element" : StringUtil.escapeXmlEntities(fullName), length, finished ? "" : " so far"); }