import lombok.Delegate; abstract class DelegateOnMethods { public static interface Bar { void bar(java.util.ArrayList list); } public @java.lang.SuppressWarnings("all") void bar(final java.util.ArrayList list) { this.getBar().bar(list); } DelegateOnMethods() { super(); } public abstract @Delegate Bar getBar(); }