@Override
  public @NotNull List<? extends Action> getContextActions(@NotNull PsiElement element) {
    if (!(element instanceof YAMLKeyValue || element instanceof YAMLSequenceItem)) {
      return Collections.emptyList();
    }
    String configName = YAMLUtil.getConfigFullName((YAMLPsiElement)element);
    if (configName.isEmpty()) {
      return Collections.emptyList();
    }
    return Collections.singletonList(new AbstractAction(YAMLBundle.message("YAMLBreadcrumbsInfoProvider.copy.key.to.clipboard")) {
      @Override
      public void actionPerformed(ActionEvent event) {
        CopyPasteManager.getInstance().setContents(new StringSelection(configName));
      }
    });
  }
@Override
  public @NotNull List<? extends Action> getContextActions(@NotNull PsiElement element)