void () { if (topFoldedInlaysHeightValid || !ApplicationManager.getApplication().isDispatchThread()) return; topFoldedInlaysHeightValid = true; if (hasBlockInlays()) { int count = topLevelRegions.length; topFoldedInlaysHeight = ArrayUtil.newIntArray(count); int inlaysHeightSum = 0; for (int i = 0; i < count; i++) { inlaysHeightSum += getFoldedBlockInlaysHeight(topStartOffsets[i], topEndOffsets[i] + 1); topFoldedInlaysHeight[i] = inlaysHeightSum; } } else { topFoldedInlaysHeight = null; } }