code: public static Map<String, QueryParameter> getChildDependentParameters(List<QueryParameter> params, QueryParameter p) {
          Map<String, QueryParameter> result = new HashMap<String, QueryParameter>();
          for (QueryParameter param : params) {
              if (!param.equals(p)) {
                  if (param.isDependent()) {
                      List<String> names = param.getDependentParameterNames();
                      if (names.contains(p.getName())) {
                          result.put(param.getName(), param);
                      }
                  }
              }
          }
          return result;
      }
docs: Get child dependent parameters
  
  @param params list of parameters
  @param p      current parameter
  @return a map of all parameters that use the current parameter in theirs source definition