class EsapiEncryptorDetector extends OpcodeStackDetector {

    private static final boolean DEBUG = false;
    private static final String ESAPI_ENCRYPTOR_TYPE = "ESAPI_ENCRYPTOR";

    private BugReporter bugReporter;

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

    @Override
    public void sawOpcode(int seen) {<FILL_FUNCTION_BODY>}
}

        //printOpCode(seen);
        if (seen == Const.INVOKEINTERFACE && getClassConstantOperand().equals("org/owasp/esapi/Encryptor") &&
                (getNameConstantOperand().equals("encrypt") || getNameConstantOperand().equals("decrypt"))) {

            bugReporter.reportBug(new BugInstance(this, ESAPI_ENCRYPTOR_TYPE, Priorities.NORMAL_PRIORITY) //
                    .addClass(this).addMethod(this).addSourceLine(this));
        }
    
<no_super_class>