void () { FindInProjectUtil.initFileFilter(myFileFilter, myEnableFileNameFilterCb); myEnableFileNameFilterCb.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { updateMaskWarning(); } }); myFileFilter.getEditor().getEditorComponent().addKeyListener(new KeyAdapter() { @Override public void keyReleased(KeyEvent e) { updateMaskWarning(); } }); }