code: public static boolean isOfSameType(YamlNode left, YamlNode right) {
          return left instanceof YamlMapping && right instanceof YamlMapping
                  || left instanceof YamlSequence && right instanceof YamlSequence
                  || left instanceof YamlScalar && right instanceof YamlScalar;
      }
docs: Checks if the two provided {@code nodes} are of the same type
  
  @param left  The left-side node of the check
  @param right The right-side node of the check
  @return {@code true} if the provided nodes are of the same type