void (@NotNull List<? extends FilePatch> patches) { List<AbstractFilePatchInProgress<?>> matchedPatches = new MatchPatchPaths(myProject).execute(patches, myUseProjectRootAsPredefinedBase); //todo add shelved binary patches ApplicationManager.getApplication().invokeLater(() -> { myPatches.clear(); myPatches.addAll(matchedPatches); updateTree(true); }); }