JComponent () { myLogFilterCombo.setModel(new DefaultComboBoxModel<>(myFilters.toArray(new LogFilter[0]))); resetLogFilter(); myLogFilterCombo.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { final LogFilter filter = (LogFilter)myLogFilterCombo.getSelectedItem(); final Task.Backgroundable task = new Task.Backgroundable(myProject, getApplyingFilterTitle()) { @Override public void run(@NotNull ProgressIndicator indicator) { myModel.selectFilter(filter); } }; ProgressManager.getInstance().run(task); } }); AccessibleContextUtil.setName(myLogFilterCombo, ExecutionBundle.message("log.filter.combo.accessible.name")); myTextFilterWrapper.removeAll(); myTextFilterWrapper.add(getTextFilterComponent()); return mySearchComponent; }