boolean hasVirtualSelection() {
    ApplicationManager.getApplication().assertReadAccessAllowed();
    SelectionMarker marker = mySelectionMarker;
    return marker != null && marker.isValid() && isVirtualSelectionEnabled() && marker.hasVirtualSelection();
  }
boolean hasVirtualSelection()