refactoring: common warning code
Build with Android 5.0 SDK in Intellij IDEA