docs: static JSType findDominatingCase(JSType field) {
      if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) JmfTr.entry(tc, "findDominatingCase", field);
  
      JSType parent = (JSType) field.getParent();
      while ((parent != null) && !(parent instanceof JSVariant)) {
        field = parent;
        parent = (JSType) field.getParent();
      }
  
      if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) JmfTr.exit(tc, "findDominatingCase", field.getFeatureName());
      return field;
    }