public void writeExternal(@NotNull Object bean, @NotNull Element element, boolean preserveCompatibility) {
    BeanBinding binding = getBinding(bean);
    if (preserveCompatibility && orderedBindings != null) {
      binding.sortBindings(orderedBindings);
    }

    if (preserveCompatibility || serializedAccessorNameTracker == null) {
      binding.serializeProperties(bean, element, mySerializationFilter);
    }
    else {
      Set<String> oldTracker = serializedAccessorNameTracker;
      try {
        serializedAccessorNameTracker = null;
        binding.serializeProperties(bean, element, mySerializationFilter);
      }
      finally {
        serializedAccessorNameTracker = oldTracker;
      }
    }
  }
public void writeExternal(@NotNull Object bean, @NotNull Element element, boolean preserveCompatibility)