diff --git a/java/java-impl/src/com/intellij/codeInsight/hint/api/impls/MethodParameterInfoHandler.java b/java/java-impl/src/com/intellij/codeInsight/hint/api/impls/MethodParameterInfoHandler.java index 2241b04a3f88..b4232c6cd9c7 100644 --- a/java/java-impl/src/com/intellij/codeInsight/hint/api/impls/MethodParameterInfoHandler.java +++ b/java/java-impl/src/com/intellij/codeInsight/hint/api/impls/MethodParameterInfoHandler.java @@ -345,6 +345,7 @@ public class MethodParameterInfoHandler implements ParameterInfoHandlerWithTabAc if (!method.isConstructor()) { PsiType returnType = method.getReturnType(); if (substitutor != null) { + assert substitutor.isValid(); returnType = substitutor.substitute(returnType); } @@ -372,6 +373,7 @@ public class MethodParameterInfoHandler implements ParameterInfoHandlerWithTabAc PsiType paramType = param.getType(); assert paramType.isValid(); if (substitutor != null) { + assert substitutor.isValid(); paramType = substitutor.substitute(paramType); } appendModifierList(buffer, param);