void (@NotNull DataContext dc, boolean withLocal) { Project project = CommonDataKeys.PROJECT.getData(dc); if (project == null) return; ListSelection<? extends ChangeDiffRequestChain.Producer> diffRequestProducers = createDiffProducers(dc, withLocal); if (diffRequestProducers == null || diffRequestProducers.isEmpty()) return; DiffRequestChain chain = new ChangeDiffRequestChain(diffRequestProducers); chain.putUserData(PatchesPreloader.SHELF_PRELOADER, new PatchesPreloader(project)); DiffManager.getInstance().showDiff(project, chain, DiffDialogHints.FRAME); }