code: @SuppressWarnings("squid:S1168")
      public String[] selectedValues() {
          if (isNotPresentSelect()) {
              return null;    // returning an empty array could be confused with no values selected
          }
          WebElement webElement = element.getWebElement();
          Select dropdown = new Select(webElement);
          List<WebElement> options = dropdown.getAllSelectedOptions();
          String[] stringOptions = new String[options.size()];
          for (int i = 0; i < options.size(); i++) {
              stringOptions[i] = options.get(i).getAttribute(VALUE);
          }
          return stringOptions;
      }
docs: Retrieves the selected values for the element. If the element isn't
  present or a select, a null value will be returned.
  
  @return String[]: the options from the select element