import lombok.Builder; class BuilderWithExistingBuilderClass { @Builder(setterPrefix = "with") public static BuilderWithExistingBuilderClass staticMethod(Z arg1, boolean arg2, String arg3) { return null; } public static class BuilderWithExistingBuilderClassBuilder { private Z arg1; public void withArg2(boolean arg) { } } }