code: private static Plan resolvePlan( Plan plan, ProfiledPlan profiledPlan )
      {
          return plan == null ? profiledPlan : plan;
      }
docs: Profiled plan is a superset of plan. This method returns profiled plan if plan is {@code null}.
  
  @param plan the given plan, possibly {@code null}.
  @param profiledPlan the given profiled plan, possibly {@code null}.
  @return available plan.