@NotNull
  private EditorMouseEvent convertEvent(@NotNull EditorMouseEvent originalEvent) {
    LogicalPosition logicalPosition = hostToInjected(originalEvent.getLogicalPosition());
    int offset = logicalPositionToOffset(logicalPosition);
    VisualPosition visualPosition = logicalToVisualPosition(logicalPosition);
    FoldRegion hostFoldRegion = originalEvent.getCollapsedFoldRegion();
    return new EditorMouseEvent(this, originalEvent.getMouseEvent(), originalEvent.getArea(),
                                offset, logicalPosition, visualPosition, true,
                                hostFoldRegion == null ? null : FoldingRegionWindow.getInjectedRegion(hostFoldRegion), null, null);
  }
@NotNull
  private EditorMouseEvent convertEvent(@NotNull EditorMouseEvent originalEvent)