CompletableFuture<List<InterfaceType>> (ClassType cls) { if (cls instanceof ClassTypeImpl && isAsyncEnabled()) { return ((ClassTypeImpl)cls).interfacesAsync(); } return completedFuture(cls.interfaces()); }