@Nullable public ModelType<?> getLowerBound() { WildcardWrapper wildcardType = getWildcardType(); if (wildcardType == null) { return null; } else { TypeWrapper lowerBound = wildcardType.getLowerBound(); if (lowerBound == null) { return null; } return Simple.typed(lowerBound); } }
@Nullable public ModelType<?> getUpperBound() { WildcardWrapper wildcardType = getWildcardType(); if (wildcardType == null) { return null; } else { ModelType<?> upperBound = Simple.typed(wildcardType.getUpperBound()); if (upperBound.equals(UNTYPED)) { return null; } return upperBound; } }