public boolean isSelectionTemplate() {
    parseSegments();
    synchronized (mySegments) {
      for (Segment v : mySegments) {
        if (SELECTION.equals(v.name)) return true;
      }
    }
    return ContainerUtil.exists(getVariables(),
                                v -> containsSelection(v.getExpression()) || containsSelection(v.getDefaultValueExpression()));
  }
public boolean isSelectionTemplate()