public List<PartialPath> getOverlappedPathPatterns(final PartialPath pattern) {
    List<PartialPath> patternList = pathPatternList;
    if (Objects.isNull(patternList) || patternList.isEmpty()) {
      patternList = getAllPathPatterns();
      pathPatternList = patternList;
    }

    return patternList.stream().filter(pattern::overlapWith).collect(Collectors.toList());
  }
Construct tree according to the pathPatternList.
iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/path/PathPatternTree.java