void (@NotNull DocumentEvent e) { if (myDialog == null) return; if (e.getDocument() == mySearchComponent.getDocument()) { scheduleResultsUpdate(); } if (e.getDocument() == myReplaceComponent.getDocument()) { applyTo(myHelper.getModel()); if (myHelper.getModel().isRegularExpressions()) { myComponentValidator.updateInfo(getValidationInfo(myHelper.getModel())); } ApplicationManager.getApplication().invokeLater(updatePreviewRunnable); } }