code: public static Method parseMethodFor(Class<Message> klass) {
      try {
        return klass.getMethod("parseDelimitedFrom", new Class[] {InputStream.class });
      } catch (SecurityException e) {
        throw new RuntimeException(e);
      } catch (NoSuchMethodException e) {
        throw new RuntimeException(e);
      }
    }
docs: Parse the method for a message
  @param klass the class containing the message
  @return the parsed method