code: public static MethodAnnotation fromXMethod(XMethod xmethod) {
          return fromForeignMethod(xmethod.getClassName(), xmethod.getName(), xmethod.getSignature(), xmethod.isStatic());
      }
docs: Create a MethodAnnotation from an XMethod.
  
  @param xmethod
  the XMethod
  @return the MethodAnnotation