PsiType () { final GrTypeElement boundTypeElement = getBoundTypeElement(); if (boundTypeElement == null) return PsiWildcardType.createUnbounded(getManager()); if (isExtends()) return PsiWildcardType.createExtends(getManager(), boundTypeElement.getType()); if (isSuper()) return PsiWildcardType.createSuper(getManager(), boundTypeElement.getType()); LOG.error("Untested case"); return null; }