public @NotNull CachedIntentions getCachedIntentions(@NotNull Editor editor, @NotNull PsiFile file) {
    return myCachedIntentions.updateAndGet(cachedIntentions -> {
      if (cachedIntentions != null && editor == cachedIntentions.getEditor() && file == cachedIntentions.getFile()) {
        return cachedIntentions;
      }
      return new CachedIntentions(myProject, file, editor);
    });
  }
public @NotNull CachedIntentions getCachedIntentions(@NotNull Editor editor, @NotNull PsiFile file)