Android Studio added this option in the meantime (I have version 1.5.1). When you run the Analyze / Inspect Code, you have “The field may be local” in the “Class structure” section, and when you click on this problem in the left pane, in the right pane you are prompted with the “Convert to local” link, which does this automatically.
source
share