private static int getMarkerCount(int line, @NotNull Document document) {
    return StringUtil.countChars(document.getImmutableCharSequence(), EVAL_IN_MARKER.charAt(0), document.getLineStartOffset(line), true);
  }
private static int getMarkerCount(int line, @NotNull Document document)