public void buildReferences(RefElement element) {
    if (element.areReferencesBuilt()) return;
    ((RefElementImpl)element).setReferencesBuilt(true);
    executeTask(() -> {
      element.initializeIfNeeded();
      element.buildReferences();
      fireBuildReferences(element);
    });
  }
public void buildReferences(RefElement element)