PsiType (PsiType type) { if (type == null) { return null; } PsiUtil.ensureValidType(type); PsiType substituted = type.accept(mySimpleSubstitutionVisitor); return correctExternalSubstitution(substituted, type); }