private boolean isEmpty(int startIdx, int endIdx) {
    for (int i = startIdx; i < endIdx; i++) {
      IElementType token = myLexTypes[i];
      if (!isWhitespaceOrComment(token)) return false;
    }
    return true;
  }
private boolean isEmpty(int startIdx, int endIdx)