Inside a method I run a line which is different for different SDKs. And the lint marker always marks it as an error and suggests me to add a new api annotation for the whole method, but this is only one line of code I think it's pointless to create a new method just for this.
I have this in many places, but for example :
private void methodA(){
...
some code (that is good for both)
...
if(Build.VERSION>SDK_INT >= 16)
pb.setBackground(anim);
else
pb.setBackgroundDrawable(anim);
...
more code
...
}