private void updateLineNumbers(boolean force) {
    for (int i = 0; i < myCount; i++) {
      if (!myShouldUpdateLineNumbers[i] && !force) continue;
      myShouldUpdateLineNumbers[i] = false;

      ApplicationManager.getApplication().assertReadAccessAllowed();

      Int2ObjectMap<List<FoldedBlock>> mapping = myLineMappings[i];
      mapping.clear();

      for (FoldedBlock folding : getFoldedBlocks()) {
        int lineNumber = folding.computeLineNumber(i);
        List<FoldedBlock> lineBlocks = mapping.computeIfAbsent(lineNumber, (key) -> new SmartList<>());
        lineBlocks.add(folding);
      }
    }
  }
private void updateLineNumbers(boolean force)