code: public static MethodAnnotation fromForeignMethod(@SlashedClassName String className, String methodName, String methodSig, int accessFlags) {
  
          className = ClassName.toDottedClassName(className);
  
          // Create MethodAnnotation.
          // It won't have source lines yet.
          MethodAnnotation methodAnnotation = new MethodAnnotation(className, methodName, methodSig,
                  (accessFlags & Const.ACC_STATIC) != 0);
  
          SourceLineAnnotation sourceLines = SourceLineAnnotation.getSourceAnnotationForMethod(className, methodName, methodSig);
  
          methodAnnotation.setSourceLines(sourceLines);
  
          return methodAnnotation;
      }
docs: Factory method to create the MethodAnnotation from the classname, method
  name, signature, etc. The method tries to look up source line information
  for the method.
  
  @param className
  name of the class containing the method
  @param methodName
  name of the method
  @param methodSig
  signature of the method
  @param accessFlags
  the access flags of the method
  @return the MethodAnnotation