public static @NotNull Element serialize(@NotNull Object object, @Nullable SerializationFilter filter) throws SerializationException {
    return XmlSerializerImpl.serialize(object, filter);
  }
public static @NotNull Element serialize(@NotNull Object object, @Nullable SerializationFilter filter)