public static void doSynchronizedLayout(final CombinedGraph combinedGraph)
      throws GraphLayoutException {
    if (LayoutCommandHelper.isAutoLayout(combinedGraph)) {
      final GraphSettings settings = combinedGraph.getSettings();
      if (settings.isSync() || settings.getDiffViewMode() == EDiffViewMode.COMBINED_VIEW) {
        GraphLayoutUpdater.executeStatic(combinedGraph, true);
      } else if (settings.getDiffViewMode() == EDiffViewMode.NORMAL_VIEW) {
        if (settings.getFocus() == ESide.PRIMARY) {
          GraphLayoutUpdater.executeStatic(combinedGraph.getPrimaryGraph(), true);
        }
        if (settings.getFocus() == ESide.SECONDARY) {
          GraphLayoutUpdater.executeStatic(combinedGraph.getSecondaryGraph(), true);
        }
      }
    }
  }
Utility class to remove basic block matches from BinDiff graphs.
java/ui/src/main/java/com/google/security/zynamics/bindiff/graph/helpers/BasicBlockMatchRemover.java