PsiType (@NotNull final PsiWildcardType wildcardType) { PsiType bound = wildcardType.getBound(); final PsiManager manager = wildcardType.getManager(); if (bound == null) return PsiWildcardType.createUnbounded(manager); bound = mapType(bound); if (bound == null) return null; return wildcardType.isExtends() ? PsiWildcardType.createExtends(manager, bound) : PsiWildcardType.createSuper(manager, bound); }