void (@NotNull final AnActionEvent e) { final AnalysisScope scope = getScope(getSelectedScope(myRightTree)); LOG.assertTrue(scope != null); final DependenciesBuilder builder; if (!myForward) { builder = new BackwardDependenciesBuilder(myProject, scope, myScopeOfInterest); } else { builder = new ForwardDependenciesBuilder(myProject, scope, myTransitiveBorder); } ProgressManager.getInstance().runProcessWithProgressAsynchronously(myProject, CodeInsightBundle.message("package.dependencies.progress.title"), () -> builder.analyze(), () -> { myBuilders.add(builder); myDependencies.putAll(builder.getDependencies()); putAllDependencies(builder); exclude(myExcluded); rebuild(); }, null, new PerformAnalysisInBackgroundOption(myProject)); }