void () { final Task.Backgroundable task = new Task.Backgroundable(myProject, getApplyingFilterTitle()) { @Override public void run(@NotNull ProgressIndicator indicator) { myModel.updateCustomFilter(getFilter()); } }; ProgressManager.getInstance().run(task); }