391392393394395396397398399
*/ @NotNull public T getSelectedObject() throws NoElementSelectedException { List<? extends T> selectedElements = getSelectedObjects(); if ( selectedElements.isEmpty() ) { throw new NoElementSelectedException(); } return selectedElements.get( 0 ); }