private static CompletableFuture<SourcePosition> getSourcePositionAsync(@NotNull StackFrameProxyImpl frame) {
    try {
      Location location = frame.location();
      CompoundPositionManager positionManager = frame.getVirtualMachine().getDebugProcess().getPositionManager();
      return positionManager.getSourcePositionAsync(location);
    }
    catch (Exception e) {
      return CompletableFuture.failedFuture(e);
    }
  }
private static CompletableFuture<SourcePosition> getSourcePositionAsync(@NotNull StackFrameProxyImpl frame)