void (char c, @NotNull DataContext dataContext) { Editor editor = CommonDataKeys.EDITOR.getData(dataContext); //no need to stop daemon if something happened in the console if (editor != null && !worthBothering(editor.getDocument(), editor.getProject())) { return; } stopDaemon(true, "Editor typing"); }