import lombok.AccessLevel; import lombok.Getter; @Getter class GetterNone { int i; @Getter(AccessLevel.NONE) int foo; public @java.lang.SuppressWarnings("all") int getI() { return this.i; } GetterNone() { super(); } }