/src/main/java/org/htmlunit/html/HtmlSelect.java
final org.htmlunit.html.HtmlOption option =((org.htmlunit.html.HtmlOption)(element)); if(option.isSelected()) {  lastSelected = option;};
if ( element instanceof HtmlOption ) { final HtmlOption option = ( HtmlOption ) element; if ( option.isSelected ( ) ) { lastSelected = option; }
} } else { result = new ArrayList<>(1); HtmlOption lastSelected = null; for (final HtmlElement element : getHtmlElementDescendants()) { <extra_id_0> } } if (lastSelected != null) { result.add(lastSelected); } }