If you want to generate getters and setters through the Create menu, the only way is to place the cursor at the bottom of your class (or wherever you are)
But if your field is not yet used, there is one more option: go to the field for which getter / setter is required, press Alt + Enter (it brings up the dialogue of intentions) and select the option โgenerate getter and setterโ. Then getter and setter will be generated at the bottom of the class (but not lower than the inner classes, if any).
source share