Windup 102: Refactor java legacy rules

@formatter:off is there twice in this file :-)