public List<List<V>> getOverlapped(PartialPath devicePath, List<String> measurements) {
    List<Set<V>> resultSet = new ArrayList<>();
    for (int i = 0; i < measurements.size(); i++) {
      resultSet.add(new HashSet<>());
    }
    String[] nodes = devicePath.getNodes();
    searchOverlapped(getRoot(nodes[0]), nodes, 0, measurements, resultSet);
    List<List<V>> res = new ArrayList<>();
    for (Set<V> set : resultSet) {
      res.add(new ArrayList<>(set));
    }
    return res;
  }
Get a list of value lists related to PathPattern that overlapped with measurements under the
same device.

@param devicePath device path without wildcard
@param measurements list of measurements
@return de-duplicated value list
iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/path/PatternTreeMap.java