String (@NotNull PsiTypeParameterListOwner typeParameterListOwner) { if (typeParameterListOwner instanceof PsiClass) { return HighlightUtil.formatClass((PsiClass)typeParameterListOwner); } else if (typeParameterListOwner instanceof PsiMethod) { return JavaHighlightUtil.formatMethod((PsiMethod)typeParameterListOwner); } else { LOG.error("Unknown " + typeParameterListOwner); return "?"; } }