Yes, not everything you need, but there is a plug-in with Android Studio that can nicely organize your code on some existing one.
First you need to install the Rules here (in Studio automatically installed by default)
File > Settings > Code Style > Arrangement

Then from the open java file go to Help > Find Actionand start typing Rearrange code, it automatically issues an action to organize your code.
Shortcut to open a search action Ctrl+Shift+A
source
share