@Override
  public boolean isAvailable(@NotNull Project project,
                             Editor editor,
                             PsiFile file) {
    if (editor == null) return false;
    if (!EditorUtil.isRealFileEditor(editor)) return false;
    return !EditorUtil.getSelectionInAnyMode(editor).isEmpty();
  }
@Override
  public boolean isAvailable(@NotNull Project project,
                             Editor editor,
                             PsiFile file)