public static CompletableFuture<Method> method(Location location) {
    if (location instanceof LocationImpl && isAsyncEnabled()) {
      return reschedule(DebuggerUtilsEx.getMethodAsync((LocationImpl)location));
    }
    return toCompletableFuture(() -> DebuggerUtilsEx.getMethod(location));
  }
public static CompletableFuture<Method> method(Location location)