@lombok.experimental.UtilityClass class UtilityClass { private long someField = System.currentTimeMillis(); void someMethod() { System.out.println(); new InnerClass(); new InnerStaticClass(); } protected class InnerClass { private String innerInnerMember; } protected static class InnerStaticClass { private String innerInnerMember; } } class UtilityInner { static class InnerInner { @lombok.experimental.UtilityClass class InnerInnerInner { int member; } } enum UtilityInsideEnum { FOO, BAR; @lombok.experimental.UtilityClass class InsideEnum { int member; } } interface UtilityInsideInterface { @lombok.experimental.UtilityClass class InsideInterface { int member; } } }