title: How to rearrange code with overridden methods at the top in Android Studio?
body: <p>In the <code>Preferences &gt; Code Style &gt; Arrangement</code>- tab, I have to manually enter matching rules for specific method names if I want to arrange them to be at the top.</p>
  
  <p>For example, I have an activity where I want the lifecycle- and other overridden methods to be at the top:</p>
  
  <pre><code>public final class MyActivity extends Activity {
      // Fields
  
      @Override
      public final void onCreate(...) { ... }
      ...
  
      // Other methods
  }
  </code></pre>
  
  <p>Is there a better way?</p>