@Override
    public void visitElement(@NotNull PsiElement element) {
      ProgressIndicatorProvider.checkCanceled();

      if (element instanceof YAMLKeyValue) {
        visitYAMLKeyValue((YAMLKeyValue)element);
      }
      else if (element instanceof YAMLMapping) {
        visitYAMLMapping((YAMLMapping)element);
      }
      else if (element instanceof YAMLSequenceItem) {
        visitYAMLSequenceItem((YAMLSequenceItem)element);
      }
      else if (element instanceof YAMLDocument) {
        visitYAMLDocument((YAMLDocument)element);
      }
    }
@Override
    public void visitElement(@NotNull PsiElement element)