mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
IDEA-84960
This commit is contained in:
+3
-1
@@ -202,7 +202,9 @@ public class PsiMethodCallExpressionImpl extends ExpressionPsiElement implements
|
||||
PsiSubstitutor substitutor = JavaPsiFacade.getInstance(manager.getProject()).getElementFactory().createSubstitutor(map);
|
||||
final PsiClassType classType = JavaPsiFacade.getInstance(manager.getProject()).getElementFactory()
|
||||
.createType(javaLangClass, substitutor, languageLevel);
|
||||
return PsiUtil.captureToplevelWildcards(classType, methodExpression);
|
||||
final PsiElement parent = call.getParent();
|
||||
return parent instanceof PsiReferenceExpression && parent.getParent() instanceof PsiMethodCallExpression
|
||||
? PsiUtil.captureToplevelWildcards(classType, methodExpression) : classType;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user