A similar Java code generator from FXML is available in SceneBuilder View | Show Sample Controller Skeleton feature.
I use this feature all the time and try to keep my controllers really light so they are almost all auto generated code from the SceneBuilder skeleton feature.