PsiSubstitutor (@NotNull PsiClass psiClass) { @NotNull PsiSubstitutor subst = PsiSubstitutor.EMPTY; PsiType[] parameters = getTypeParameters(); subst = subst.putAll(psiClass, parameters); return subst; }