@Override
    public boolean equals(Object o) {
        if (o == this) {
            return true;
        } else if (o instanceof TypeSuper) {
            return Objects.equals(((TypeSuper) o).varName, varName)
                    && ((TypeSuper) o).superType.equals(superType);
        } else {
            return false;
        }
    }
TypeSuper is a Type for type variables and wildcard types

@author tiwe
querydsl-codegen-utils/src/main/java/com/querydsl/codegen/utils/model/TypeSuper.java