public final boolean isEnabled(@NotNull Editor editor, @Nullable Caret caret, DataContext dataContext) {
    return caret == null ? isEnabled(editor, dataContext) : isEnabledForCaret(editor, caret, dataContext);
  }
public final boolean isEnabled(@NotNull Editor editor, @Nullable Caret caret, DataContext dataContext)