PsiSubstitutor (@NotNull PsiClass parentClass, PsiType[] mappings) { if(!parentClass.hasTypeParameters()) return this; return PsiSubstitutorFactory.getInstance().createSubstitutor(parentClass, mappings); }