docs: public static DeploymentUnit getTopDeploymentUnit(DeploymentUnit unit) {
          Assert.checkNotNullParam("unit", unit);
  
          DeploymentUnit parent = unit.getParent();
          while (parent != null) {
              unit = parent;
              parent = unit.getParent();
          }
          return unit;
      }