What is main use of "Add method contract to ..." Android Studio

Viewed 4950

I am getting following option like "Add method contract to 'setDisplayHomeAsUpEnabled'", I know that inspection is because of NPE can throw by getSupportActionBar() but I want to know actual use of Method Contract

enter image description here

If I Press Enter on that selection, I am getting:

enter image description here

Any Sharing? Any Help? It will appreciated :)

1 Answers
Related