void () { if (myDisposed || myUpdateDisabled) return; boolean enabled = hasDiffs(); if (myCommitAction != null) { myCommitAction.setEnabled(enabled); } myExecutorActions.forEach(action -> action.updateEnabled(enabled)); myOKButtonUpdateAlarm.cancelAllRequests(); myOKButtonUpdateAlarm.addRequest(myUpdateButtonsRunnable, 300, ModalityState.stateForComponent(getBrowser())); }