PsiSubstitutor (@NotNull PsiTypeParameter typeParameter, @Nullable PsiType lType, @NotNull PsiSubstitutor substitutor) { if (myPlace == null) return substitutor; final PsiType inferred = myHelper.getSubstitutionForTypeParameter(typeParameter, lType, inferContextType(), false, LanguageLevel.JDK_1_8); if (inferred != PsiTypes.nullType()) { return substitutor.put(typeParameter, inferred); } return substitutor; }