Modifier Modifier is a plugin for IntelliJ IDEA which provides hotkeys for toggling each Java declaration modifier, including static, final, private/protected/public, for the selected field, method, variable, or class declaration.
Comments and ratings are at JetBrains' IntelliJ IDEA Plugin site.
EXAMPLE
To make some fields non-final:
private final int x;
private final String y = "";
private int z;
private final Object t;
Select from anywhere on the first line to anywhere on the last line, and press Alt+Shift+F.
Result:
private int x;
private String y = "";
private int z;
private Object t;
KEYBOARD SHORTCUTS
Alt+Shift+A
Toggle abstract for current method or class
Alt+Shift+P
Cycle between private/package-private/protected/public for current field, method, constructor, or class (only package-private and public are cycled for non-inner classes)
Alt+Shift+F
Toggle final for current parameter, variable, field, method, or class
Alt+Shift+T
Toggle static for current field, method, or inner class
Alt+Shift+C
Toggle strictfp for current method or class
Alt+Shift+S
Toggle synchronized for current method
Alt+Shift+R
Toggle transient for current field
Alt+Shift+V
Toggle volatile for current field
Alt+Shift+O
Re-order modifiers for the current parameter, variable, field, method, or class according to your modifier order settings (configured in IDEA Settings)
DOWNLOAD
To download Modifier Modifier Plugin, use the IDEA Plugin Manager. Click File->Settings to open IDEA settings, then click Plugins, then click the Available tab. Look for Modifier Modifier Plugin and click the Download button on the toolbar.The source code is available in the Documents & Files section.