CachedIntentions (@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); }); }