DataContext (@NotNull Editor editor, @NotNull DataContext original) { if (PROJECT.getData(original) == editor.getProject()) { return original; } return CustomizedDataContext.create(original, dataId -> PROJECT.is(dataId) ? editor.getProject() : null); }