private static @NotNull PsiElement generateSeparator(PsiElement parent) {
      YAMLElementGenerator generator = YAMLElementGenerator.getInstance(parent.getProject());
      if (parent instanceof YAMLHashImpl) {
        return generator.createComma();
      } else {
        return generator.createEol();
      }
    }
private static @NotNull PsiElement generateSeparator(PsiElement parent)