code: @Nonnull
      public BugInstance addMethod(JavaClass javaClass, Method method) {
          MethodAnnotation methodAnnotation = new MethodAnnotation(javaClass.getClassName(), method.getName(),
                  method.getSignature(), method.isStatic());
          SourceLineAnnotation methodSourceLines = SourceLineAnnotation.forEntireMethod(javaClass, method);
          methodAnnotation.setSourceLines(methodSourceLines);
          addMethod(methodAnnotation);
          return this;
      }
docs: Add a method annotation. If this is the first method annotation added, it
  becomes the primary method annotation. If the method has source line
  information, then a SourceLineAnnotation is added to the method.
  
  @param javaClass
  the class the method is defined in
  @param method
  the method
  @return this object