code: private static void detectWTFMethods() {
          // Check if wtf exists (android 2.2+)
          // static int wtf(String tag, String msg)
          // static int wtf(String tag, Throwable tr)
          // static int wtf(String tag, String msg, Throwable tr)
          try {
              wtfTagMessageMethod = android.util.Log.class.getMethod("wtf",
                      new Class[] { String.class, String.class });
              wtfTagErrorMethod = android.util.Log.class.getMethod("wtf",
                      new Class[] { String.class, Throwable.class });
              wtfTagMessageErrorMethod = android.util.Log.class
                      .getMethod("wtf", new Class[] { String.class, String.class,
                              Throwable.class });
              useWTF = true;
          } catch (Exception e) {
              // wtf is not defined, will use Constants.ASSERT level.
              useWTF = false;
          }
      }
docs: Check if the android Log class contains the <code>wtf</code> method
  (Android 2.2+). In that case, the delegation to those method is enabled.
  If not, calling {@link Log#wtf(Object, String)} log a message with the
  level {@link Log#Constants.ASSERT}