* FindBugs project representing analyzed classes
* @param bugReporter
* Reporter used to collect the new warnings
*/
private void updateBugCollection(Project findBugsProject, Reporter bugReporter, boolean incremental) {
SortedBugCollection newBugCollection = bugReporter.getBugCollection();
logDirty(newBugCollection);
try {
st.newPoint("getBugCollection");
SortedBugCollection oldBugCollection = FindbugsPlugin.getBugCollection(project, monitor, false);
logDirty(oldBugCollection);
st.newPoint("mergeBugCollections");
SortedBugCollection resultCollection = mergeBugCollections(oldBugCollection, newBugCollection, incremental);
logDirty(resultCollection);
resultCollection.getProject().setGuiCallback(new EclipseGuiCallback(project));
resultCollection.setTimestamp(System.currentTimeMillis());
resultCollection.setDoNotUseCloud(false);
resultCollection.reinitializeCloud();
logDirty(resultCollection);
// will store bugs in the default FB file + Eclipse project session
// props
st.newPoint("storeBugCollection");