How to make custom warning fix for possible null pointer in CE

Hi. For examle warning is found : Method invocation 'rootView.findViewById(R.id.pager)' may produce 'java.lang.NullPointerException' less... (Ctrl+F1)

i want to fix all problems with this: - if (rootView == null) throw new AssertionError("Object cannot be null");

It would be nice just click the "rootView" word, and implement this. Maybe code generator could help. Link

Do i need to create plugin to be able to do it, fix all same problems? Link

Please sign in to leave a comment.