void (@NotNull MouseEvent e) { boolean multiSelectMode = e.isShiftDown() || UIUtil.isControlKeyDown(e); boolean previewMode = isPreviewActive(); if (e.getButton() == MouseEvent.BUTTON1 && !multiSelectMode && !previewMode) { e.consume(); final int i = myResultsList.locationToIndex(e.getPoint()); if (i > -1) { myResultsList.setSelectedIndex(i); elementsSelected(new int[]{i}, e.getModifiers()); } } }