Fixed possible compile problem

Only generate a static method to create the builder,
if no super class has the same method name.