code: public boolean shouldBeInReport(final DbDependency dependency) {
          if(dependency == null){
              return false;
          }
          if(dependency.getTarget() == null){
              return false;
          }
          if(corporateFilter != null){
              if(!decorator.getShowThirdparty() && !corporateFilter.filter(dependency)){
                  return false;
              }
              if(!decorator.getShowCorporate() && corporateFilter.filter(dependency)){
                  return false;
              }
          }
  
          if(!scopeHandler.filter(dependency)){
              return false;
          }
  
          return true;
      }
docs: Check if a dependency matches the filters
  
  @param dependency
  
  @return boolean