void () { if (lastExecutedCloseSearchTask != null) { lastExecutedCloseSearchTask.shouldStop(); setNewStatusText(""); } mySearchReplaceComponent.setRegularBackground(); largeFileEditor.getEditorModel().setHighlightingCloseSearchResultsEnabled(false); String stringToFind = mySearchReplaceComponent.getSearchTextComponent().getText(); boolean isMultiline = stringToFind.contains("\n"); mySearchReplaceComponent.update(stringToFind, "", false, isMultiline); }