public static SourceLineAnnotation fromVisitedMethod(PreorderVisitor visitor) {

        SourceLineAnnotation sourceLines = getSourceAnnotationForMethod(visitor.getDottedClassName(), visitor.getMethodName(),
                visitor.getMethodSig());
        return sourceLines;
    }
public static SourceLineAnnotation fromVisitedMethod ( PreorderVisitor visitor ) { SourceLineAnnotation sourceLines = getSourceAnnotationForMethod ( visitor . getDottedClassName ( ) , visitor . getMethodName ( ) , visitor . getMethodSig ( ) ) ; return sourceLines ; }
Factory method for creating a source line annotation describing an entire
method.

@param visitor
a BetterVisitor which is visiting the method
@return the SourceLineAnnotation