private static long getTimestamp(@NotNull Editor editor, Document document) {
    return editor.getSettings().isIndentGuidesShown() ? document.getModificationStamp() : -1;
  }
private static long getTimestamp(@NotNull Editor editor, Document document)