PsiType (@NotNull PsiTypeParameter typeParameter) { if (typeParameter instanceof LightTypeParameter && ((LightTypeParameter)typeParameter).useDelegateToSubstitute()) { typeParameter = ((LightTypeParameter)typeParameter).getDelegate(); } return mySubstitutionMap.getOrDefault(typeParameter, PsiTypes.voidType()); }