class Struts2EndpointDetector implements Detector {

    private static final String STRUTS2_ENDPOINT_TYPE = "STRUTS2_ENDPOINT";

    private BugReporter bugReporter;

    public Struts2EndpointDetector(BugReporter bugReporter) {
        this.bugReporter = bugReporter;
    }

    @Override
    public void visitClassContext(ClassContext classContext) {<FILL_FUNCTION_BODY>}

    @Override
    public void report() {

    }
}

        JavaClass javaClass = classContext.getJavaClass();

        for (Method m : javaClass.getMethods()) {
            if ("execute".equals(m.getName()) && "()Ljava/lang/String;".equals(m.getSignature())) {
                bugReporter.reportBug(new BugInstance(this, STRUTS2_ENDPOINT_TYPE, Priorities.LOW_PRIORITY) //
                        .addClass(javaClass));
            }
        }
    
<no_super_class>