code: public static InjectorMethod asMethod(boolean isNative, String signature, String pkg,
        final SourceSnippet body) {
      return new AbstractInjectorMethod(isNative, signature, pkg) {
        public String getMethodBody(InjectorWriteContext writeContext) {
          return body.getSource(writeContext);
        }
      };
    }
docs: Creates an {@link InjectorMethod} using the given {@link SourceSnippet} as
  its body.
  
  @param isNative whether the returned method is a native method
  @param signature the signature of the returned method
  @param pkg the package in which the returned method should be created
  @param body the body text of the new method