final @lombok.experimental.UtilityClass class UtilityClass { protected static class InnerClass { private String innerInnerMember; protected InnerClass() { super(); } } private static long someField = System.currentTimeMillis(); <clinit>() { } static void someMethod() { System.out.println(); } private @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") UtilityClass() { super(); throw new java.lang.UnsupportedOperationException("This is a utility class and cannot be instantiated"); } } class UtilityInner { static class InnerInner { static final @lombok.experimental.UtilityClass class InnerInnerInner { static int member; <clinit>() { } private @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") InnerInnerInner() { super(); throw new java.lang.UnsupportedOperationException("This is a utility class and cannot be instantiated"); } } InnerInner() { super(); } } enum UtilityInsideEnum { static final @lombok.experimental.UtilityClass class InsideEnum { static int member; <clinit>() { } private @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") InsideEnum() { super(); throw new java.lang.UnsupportedOperationException("This is a utility class and cannot be instantiated"); } } FOO(), BAR(), <clinit>() { } UtilityInsideEnum() { super(); } } interface UtilityInsideInterface { final @lombok.experimental.UtilityClass class InsideInterface { static int member; <clinit>() { } private @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") InsideInterface() { super(); throw new java.lang.UnsupportedOperationException("This is a utility class and cannot be instantiated"); } } } UtilityInner() { super(); } }