protected static void syncBasicBlockVisibility(
      final GraphsContainer graphs, final CombinedDiffNode node) {
    final GraphSettings settings = graphs.getSettings();
    if (settings.isAsync()) {
      final boolean autoLayout =
          LayoutCommandHelper.deactivateAutoLayout(graphs.getCombinedGraph());
      try {
        if (settings.getDiffViewMode() == EDiffViewMode.COMBINED_VIEW) {
          node.getPrimaryRawNode().setVisible(true);
          node.getSecondaryRawNode().setVisible(true);
          node.getSuperRawNode().setVisible(true);
        } else if (settings.getDiffViewMode() == EDiffViewMode.NORMAL_VIEW) {
          node.getRawNode().setVisible(true);
          node.getPrimaryRawNode().setVisible(true);
          node.getSecondaryRawNode().setVisible(true);
          node.getSuperRawNode().setVisible(true);
        }
      } finally {
        LayoutCommandHelper.activateAutoLayout(graphs.getCombinedGraph(), autoLayout);
      }
    }
  }
Utility class to remove basic block matches from BinDiff graphs.
java/ui/src/main/java/com/google/security/zynamics/bindiff/graph/helpers/BasicBlockMatchRemover.java