code: public static Map<String, QueryParameter> getParentDependentParameters(Report report, QueryParameter p) {
          return getParentDependentParameters(report.getParameters(), p);
      }
docs: Get parent dependent parameters
  
  @param report next report object
  @param p      current parameter
  @return a map of all parameters that are used in the source definition of the current parameter