isartcanyameres/opennaas — comment on commit 65942beba4bb9d065e53350513adf21095571297
File: manticore/bundles/org.opennaas.router.capability.ospf/src/main/java/org/opennaas/router/capability/ospf/OSPFCapability.java line 149
By gbehrmann:

Another Guava one-liner:

return find(lServices, instanceOf(OSPFService.class), null);

with

import static com.google.common.collect.Iterables.find;
import static com.google.common.base.Predicates.instanceOf;

or alternatively

return tryFind(lServices, instanceOf(OSPFService.class)).or(null);

with

import static com.google.common.collect.Iterables.tryFind;