code: @Override
      public boolean accepts(Dependency d) {
          if (d.getOrigin().equals(d.getTarget()))
              return false;
  
          // filter same package dependency
          String pn = d.getTarget().getPackageName();
          if (filterSamePackage && d.getOrigin().getPackageName().equals(pn)) {
              return false;
          }
  
          // filter if the target package matches the given filter
          if (filterPattern != null && filterPattern.matcher(pn).matches()) {
              return false;
          }
  
          // filter if the target matches the given filtered package name or regex
          return filter != null ? filter.accepts(d) : true;
      }
docs: ----- Dependency.Filter -----