Project Lombok does this via annotations that can be added to the Java class for which common methods are desired. Most of the annotations are self-descriptive in their names: @Getter, @Setter, ...
These buildings are not only beautiful but also cleverly designed to withstand earthquakes and keep cool in the hot tropical sun.