private static boolean checkCacheEntry(@Nullable SourcePosition position, @NotNull Location location) {
    return ReadAction.compute(() -> {
      if (position == null) return false;
      PsiFile psiFile = position.getFile();
      if (!psiFile.isValid()) return false;
      String url = DebuggerUtilsEx.getAlternativeSourceUrl(location.declaringType().name(), psiFile.getProject());
      if (url == null) return true;
      VirtualFile file = psiFile.getVirtualFile();
      return file != null && url.equals(file.getUrl());
    });
  }
private static boolean checkCacheEntry(@Nullable SourcePosition position, @NotNull Location location)