void (MouseEvent e) { if (e.getClickCount() == 2) { BeforeRunTask clone = myTask.clone(); if (!DumbService.isDumb(myConfiguration.getProject()) || DumbService.isDumbAware(myProvider)) { myProvider.configureTask(DataManager.getInstance().getDataContext(TaskButton.this), myConfiguration, clone) .onSuccess(aBoolean -> { setTask(clone); updateButton(); }); } } }