static void setEnabled(final ButtonView buttonView, final boolean enabled) {
        if (buttonView != null) {
            buttonView.setEnabled(enabled);
        }
    }
Null-safe setting of the enabled state. If buttonView is null, it is a no-op.
stroom-core-client-widget/src/main/java/stroom/widget/button/client/ButtonView.java