CompletableFuture<List<Location>> (Method method) { if (method instanceof MethodImpl && isAsyncEnabled()) { return reschedule(((MethodImpl)method).allLineLocationsAsync()); } return toCompletableFuture(() -> method.allLineLocations()); }