boolean (@NotNull Editor editor, @NotNull Caret caret, DataContext dataContext) { Project project = CommonDataKeys.PROJECT.getData(dataContext); return project != null && !SEARCH_DISABLED.get(editor, false); }