import java.util.List; import java.util.*; class BuilderGenericMethod { public Map foo(int a, long b) { return null; } @java.lang.SuppressWarnings("all") public class MapBuilder { @java.lang.SuppressWarnings("all") private int a; @java.lang.SuppressWarnings("all") private long b; @java.lang.SuppressWarnings("all") MapBuilder() { } @java.lang.SuppressWarnings("all") public MapBuilder a(final int a) { this.a = a; return this; } @java.lang.SuppressWarnings("all") public MapBuilder b(final long b) { this.b = b; return this; } @java.lang.SuppressWarnings("all") public Map build() { return BuilderGenericMethod.this.foo(a, b); } @java.lang.Override @java.lang.SuppressWarnings("all") public java.lang.String toString() { return "BuilderGenericMethod.MapBuilder(a=" + this.a + ", b=" + this.b + ")"; } } @java.lang.SuppressWarnings("all") public MapBuilder builder() { return new MapBuilder(); } }