private boolean isGetterOrSetter(Method method) {
        try {
            String methodName = method.getName();
            return methodName.startsWith("get") || methodName.startsWith("is") || methodName.startsWith("set") || "clearWarnings".equals(methodName);
        } catch (Exception ex) {
            return false; // just in case, better be safe than sorry
        }
    }
private boolean isGetterOrSetter ( Method method ) { try { String methodName = method . getName ( ) ; return methodName . startsWith ( "get" ) || methodName . startsWith ( "is" ) || methodName . startsWith ( "set" ) || "clearWarnings" . equals ( methodName ) ; } catch ( Exception ex ) { return false ; } }
CHECKSTYLE THROWS_THROWABLE: ON