class GeolocationDetector implements Detector {

    private static final boolean DEBUG = false;
    private static final String ANDROID_GEOLOCATION_TYPE = "ANDROID_GEOLOCATION";
    private final BugReporter bugReporter;

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

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

    @Override
    public void report() {
    }
}

        JavaClass javaClass = classContext.getJavaClass();
        
        //The class extends WebChromeClient
        boolean isWebChromeClient = InterfaceUtils.isSubtype(javaClass, "android.webkit.WebChromeClient");
        
        //Not the target of this detector
        if (!isWebChromeClient) {
            return;
        }
        Method[] methodList = javaClass.getMethods();
        for (Method m : methodList) {
            if (DEBUG) {
                System.out.println(">>> Method: " + m.getName());
            }
            //The presence of onGeolocationPermissionsShowPrompt is not enforce for the moment
            if (!m.getName().equals("onGeolocationPermissionsShowPrompt")) {
                continue;
            }
            //Since the logic implemented need to be analyze by a human, all implementation will be flagged.
            bugReporter.reportBug(new BugInstance(this, ANDROID_GEOLOCATION_TYPE, Priorities.NORMAL_PRIORITY) //
                    .addClassAndMethod(javaClass, m));
        }
    
<no_super_class>