if (GraphicsEnvironment.isHeadless()) {
throw new IllegalStateException("Running in GUI headless mode, can't open GUI");
}
GUISaveState.loadInstance();
try {
FindBugsLayoutManagerFactory factory = new FindBugsLayoutManagerFactory(SplitLayout.class.getName());
MainFrame.makeInstance(factory);
MainFrame instance = MainFrame.getInstance();
instance.waitUntilReady();
instance.openBugCollection(bugs);
} catch (RuntimeException e) {