PsiType (PsiManager manager, PsiType guess, ConstraintType constraintType) { if (guess != null && !(guess instanceof PsiWildcardType) && guess != PsiTypes.nullType()) { if (constraintType == ConstraintType.SUPERTYPE) return PsiWildcardType.createExtends(manager, guess); else if (constraintType == ConstraintType.SUBTYPE) return PsiWildcardType.createSuper(manager, guess); } return guess; }