try {
_bugCollection = new SortedBugCollection();
final FindBugsPlugin pluginComponent = IdeaUtilImpl.getPluginComponent(project);
_importBugCollection = _bugCollection.createEmptyCollectionWithMetadata();
final edu.umd.cs.findbugs.Project importProject = _importBugCollection.getProject();
importProject.setGuiCallback(new PluginGuiCallback(pluginComponent));
_importBugCollection.setDoNotUseCloud(true);
for (final Plugin plugin : Plugin.getAllPlugins()) {
importProject.setPluginStatusTrinary(plugin.getPluginId(), !preferences.isPluginDisabled(plugin.getPluginId()));
}
_importBugCollection.readXML(fileToImport);