@Override
  public boolean isAvailableForQuickList(@NotNull Editor editor, @NotNull PsiFile file, @NotNull DataContext dataContext) {
    if (editor.getSelectionModel().hasSelection()) {
      return super.isAvailableForQuickList(editor, file, dataContext);
    } else {
      return false;
    }
  }
@Override
  public boolean isAvailableForQuickList(@NotNull Editor editor, @NotNull PsiFile file, @NotNull DataContext dataContext)