public static boolean inVirtualSpace(@NotNull Editor editor, @NotNull LogicalPosition logicalPosition) {
    return !editor.offsetToLogicalPosition(editor.logicalPositionToOffset(logicalPosition)).equals(logicalPosition);
  }
public static boolean inVirtualSpace(@NotNull Editor editor, @NotNull LogicalPosition logicalPosition)