code: public Collection<Effort> getEffortRecords(EffortFilter filter, boolean includeSubprojects) {
          filter = (filter != null) ? filter : new EffortFilter();
  
          filter.project.clear();
  
          if (includeSubprojects) {
  
              for (Project p : getThisAndAllChildProjects()) {
                  filter.project.add(p);
              }
          } else {
              filter.project.add(this);
          }
          return getInstance().get().effortRecords(filter);
      }
docs: A collection of Effort records that belong to this project.
  
  @param filter             Criteria to filter on. Project will be set automatically.
  If null, all effort records in the project are returned.
  @param includeSubprojects Specifies whether to include items from sub
  project or not. This only adds open subprojects.
  @return A collection efforts that belong to this project filtered by the
  passed in filter.