private void clearHyperlinkAndFoldings() {
    ThreadingAssertions.assertEventDispatchThread();
    Editor editor = getEditor();
    for (RangeHighlighter highlighter : editor.getMarkupModel().getAllHighlighters()) {
      if (highlighter.getUserData(ConsoleTokenUtil.MANUAL_HYPERLINK) == null) {
        editor.getMarkupModel().removeHighlighter(highlighter);
      }
    }

    editor.getFoldingModel().runBatchFoldingOperation(() -> ((FoldingModelEx)editor.getFoldingModel()).clearFoldRegions());
    editor.getInlayModel().getInlineElementsInRange(0, editor.getDocument().getTextLength()).forEach(inlay -> Disposer.dispose(inlay));

    cancelHeavyAlarm();
  }
private void clearHyperlinkAndFoldings()