[Parameter Name Hints] do not show hints for generic builders (IDEA-163214)

This commit is contained in:
Yaroslav Lepenkin
2016-10-27 16:08:30 +03:00
parent 0636ef12c7
commit 027df2e7c9
2 changed files with 23 additions and 1 deletions
@@ -60,7 +60,7 @@ public class JavaParameterHintManager {
if (expression instanceof PsiNewExpression) {
return false;
}
final PsiType returnType = method.getReturnType();
PsiType returnType = TypeConversionUtil.erasure(method.getReturnType());
final PsiClass aClass = method.getContainingClass();
final String calledMethodFqn = aClass != null ? aClass.getQualifiedName() : null;
if (calledMethodFqn != null && returnType != null) {