docs: protected static void warn(Object mojo, String msg) throws Exception {
          Method method = mojo.getClass().getMethod(GET_LOG_METHOD);
          method.setAccessible(true);
          Object logObject = method.invoke(mojo);
          method = logObject.getClass().getMethod(WARN_METHOD, CharSequence.class);
          method.setAccessible(true);
          method.invoke(logObject, msg);
      }