replace use of method removed from guava library