CompletableFuture<List<Method>> (ReferenceType type) { if (type instanceof ReferenceTypeImpl && isAsyncEnabled()) { return ((ReferenceTypeImpl)type).methodsAsync(); } return completedFuture(type.methods()); }