void () { mySearchReplaceComponent.addListener(new SearchReplaceComponent.Listener() { @Override public void searchFieldDocumentChanged() { onSearchParametersChanged(); } @Override public void replaceFieldDocumentChanged() { } @Override public void multilineStateChanged() { } }); }