public boolean hasEditor() {
boolean hasEditor() {
    public boolean hasEditor() {        try {            getClass().getDeclaredMethod("editPatch",                    new Class[] { Patch.class });            return true;        } catch (NoSuchMethodException e) {            return false;        }    }