@vach: I don’t know off hand, but if your on IntelliJ or Android Studio you can put your cursor into the highlighted code and hit Alt + Enter (may be bound differently) and if the warning is suppressible you can generate the @Suppress code, otherwise in the same popup you can set it to ignore the inspection for the instance or open up the inspection panel to change the settings for that warning.