private void initializeGraphicsBuffer() {
    bufferedImage =
        new BufferedImage(
            ((codeModel.getTotalWidthInCharacters() + 1) * fontCharWidth),
            (currentlyVisibleLines + 10) * fontLineHeight,
            BufferedImage.TYPE_INT_RGB);
    bufferedGraphics = (Graphics2D) bufferedImage.getGraphics();
  }
The code makes use of the well-orderedness of TreeMap, this map *cannot* simply be replaced
with a different map.
java/zylib/src/main/java/com/google/security/zynamics/zylib/gui/CodeDisplay/CodeDisplay.java