IDEA-99364 Highlighting constructor correction - highlight only javaReference, without type parameters

This commit is contained in:
VISTALL
2013-03-07 14:58:52 +02:00
parent 9530f21f49
commit 137d73db69
@@ -707,7 +707,10 @@ public class HighlightVisitorImpl extends JavaElementVisitor implements Highligh
}
}
else {
myHolder.add(HighlightNamesUtil.highlightMethodName(method, element, false, colorsScheme));
final PsiElement referenceNameElement = element.getReferenceNameElement();
if(referenceNameElement != null) {
myHolder.add(HighlightNamesUtil.highlightMethodName(method, referenceNameElement, false, colorsScheme));
}
}
}
catch (IndexNotReadyException ignored) {