CompletableFuture<List<InterfaceType>> (InterfaceType iface) { if (iface instanceof InterfaceTypeImpl && isAsyncEnabled()) { return ((InterfaceTypeImpl)iface).superinterfacesAsync(); } return completedFuture(iface.superinterfaces()); }