private boolean isCaretOutsideCurrentSegment(String commandName) {
    return myLiveTemplateProcessor.isCaretOutsideCurrentSegment(getEditor(), getSegments(), myCurrentSegmentNumber, commandName);
  }
private boolean isCaretOutsideCurrentSegment(String commandName)