void () { if (ApplicationManager.getApplication().isDispatchThread()) { mySearchReplaceComponent.updateActions(); } else { ApplicationManager.getApplication().invokeLater(() -> mySearchReplaceComponent.updateActions()); } }