code: private static void listResourceNotes(ProjectFile file)
     {
        for (Resource resource : file.getResources())
        {
           String notes = resource.getNotes();
  
           if (notes.length() != 0)
           {
              System.out.println("Notes for " + resource.getName() + ": " + notes);
           }
        }
  
        System.out.println();
     }
docs: This method lists any notes attached to resources.
  
  @param file MPX file