String (@NotNull PomTarget element, @NotNull ElementDescriptionLocation location) { if (element instanceof PsiElement) return null; if (location == UsageViewTypeLocation.INSTANCE) { return getTypeName(element); } if (location == UsageViewNodeTextLocation.INSTANCE) { return getTypeName(element) + " " + StringUtil.notNullize(element instanceof PomNamedTarget ? ((PomNamedTarget)element).getName() : null, "''"); } if (location instanceof HighlightUsagesDescriptionLocation) { return getTypeName(element); } return null; }