public static boolean isReadOnly(String attributeName, XmlTag tag) {
    if (findStaticPropertySetter(attributeName, tag) != null) return false;
    final XmlElementDescriptor descriptor = tag.getDescriptor();
    if (descriptor instanceof JavaFxClassTagDescriptorBase) {
      return ((JavaFxClassTagDescriptorBase)descriptor).isReadOnlyAttribute(attributeName);
    }
    return false;
  }
public static boolean isReadOnly(String attributeName, XmlTag tag)