private void trimChunkCache() {
    int limit = getChunkCacheSizeLimit();
    while (laidOutChunks.size() > limit) {
      LineLayout.Chunk chunk = laidOutChunks.removeLast();
      if (LOG.isDebugEnabled()) {
        LOG.debug("Clearing chunk for " + myView.getEditor().getVirtualFile());
      }
      chunk.clearCache();
    }
  }
private void trimChunkCache()