boolean (@NotNull DataContext dataContext) { Caret caret = dataContext.getData(CommonDataKeys.CARET); return isCutEnabled(dataContext) && (caret != null ? isCaretInsideSelection(caret) : getSelectionModel().hasSelection(true)); }