private void updateSelectedSets() {
    var invoker = myPackageTreeInvoker;
    if (invoker == null) {
      LOG.warn("ScopeEditorPanel.updateSelectedSets called before tree initialization", new Throwable());
      return;
    }
    int[] rows = myPackageTree.getSelectionRows();
    if (rows == null) return;
    PatternDialectProvider provider = PatternDialectProvider.getInstance(DependencyUISettings.getInstance().SCOPE_TYPE);
    if (provider == null) return;
    final var nodes = new ArrayList<PackageDependenciesNode>(rows.length);
    for (int row : rows) {
      final PackageDependenciesNode node = (PackageDependenciesNode)myPackageTree.getPathForRow(row).getLastPathComponent();
      nodes.add(node);
    }
    computeSelection(invoker, nodes, provider, false).onSuccess(result -> {
      myInclude.setSelection(result);
      myExclude.setSelection(result);
    });
    computeSelection(invoker, nodes, provider, true).onSuccess(result -> {
      myIncludeRec.setSelection(result);
      myExcludeRec.setSelection(result);
    });
  }
private void updateSelectedSets()