import lombok.experimental.UtilityClass; final @UtilityClass class UtilityClassGeneric { static class DTO { DTO() { super(); } } static T convertValue(Class toValueType) { return null; } static DTO convert(Object json) { return convertValue(DTO.class); } static Object convert(DTO dto) { return null; } private @java.lang.SuppressWarnings("all") UtilityClassGeneric() { super(); throw new java.lang.UnsupportedOperationException("This is a utility class and cannot be instantiated"); } }