Custom definition of "Group by methods defining type" in android studio / intellij

In Android Studio, or Intellij, in the Structure View of a class the methods can be grouped by defining type ( for example, all methods of AppCompatActivity are in a sub-view ).

Can I create a custom definition to group up some generic methods ? And How ?
Is there a lint annotation ?

Thank you