PsiSubstitutor (@NotNull PsiTypeParameter typeParameter, PsiType mapping) { if (mapping != null && !mapping.isValid()) { LOG.error("Invalid type in substitutor: " + mapping + "; " + mapping.getClass()); } return new PsiSubstitutorImpl(mySubstitutionMap, typeParameter, mapping); }