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