You can generate getters and setters separately or use one action to generate both methods. Place the caret at your code, and press . In the Generate window, select Getter and setter.