java 8 findany on null list

Java
listContries.stream()
            .filter(country -> country.getNoCountry()
            .equals(CountryFinal))
            .findAny().map(Country::getCoCountry).orElse(WHATEVER_YOU_WANT);
Source

Also in Java: