This class has 6 parent which is greater than 5 authorized

Solution for This class has 6 parent which is greater than 5 authorized
is Given Below:

I have installed SonarLint plugin in Android Studio and using it from couple of days.There is a warning i am getting that my current class which is extending some other class and so on is having 6 parent eventually which is greater than 5 authorized but the thing is there are only 2 parent which i made myself the rest of parents are default if its an activity in Android.
So this is my hirearchy tree
Current class extends BaseClass extends LocalAwareCompatActivity extends AppCompatActivity extends FragmentActivity extends ComponentActivity and so on

But anyone who is Android Developer will know that from AppCompatActivity rest of the parents are default so how i can change the rule that it should ignore every parent from AppCompatActivity.
I didnt find any satisfactory and detailed answer about this.

I am new using SonarLint so any help would be appreciated.Thanks