class CustomMessageDigestDetector implements Detector {

    private static final String CUSTOM_MESSAGE_DIGEST_TYPE = "CUSTOM_MESSAGE_DIGEST";

    private BugReporter bugReporter;

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


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

    @Override
    public void report() {
    }
}

        JavaClass javaClass = classContext.getJavaClass();

        if ("java.security.MessageDigest".equals(javaClass.getSuperclassName())) {
            bugReporter.reportBug(new BugInstance(this, CUSTOM_MESSAGE_DIGEST_TYPE, Priorities.NORMAL_PRIORITY) //
                    .addClass(javaClass));
        }
    
<no_super_class>