code: public static void storeBugCollection(IProject project, final SortedBugCollection bugCollection, IProgressMonitor monitor)
              throws IOException, CoreException {
  
          // Store the bug collection and findbugs project in the session
          project.setSessionProperty(SESSION_PROPERTY_BUG_COLLECTION, bugCollection);
  
          if (bugCollection != null) {
              writeBugCollection(project, bugCollection, monitor);
          }
      }
docs: Store a new bug collection for a project. The collection is stored in the
  session, and also in a file in the project.
  
  @param project
  the project
  @param bugCollection
  the bug collection
  @param monitor
  progress monitor
  @throws IOException
  @throws CoreException