code: private boolean relatedTo(@Nonnull AbstractBuild<?, ?> b) {
          if (b.hasParticipant(this)) {
              return true;
          }
          for (Cause cause : b.getCauses()) {
              if (cause instanceof Cause.UserIdCause) {
                  String userId = ((Cause.UserIdCause) cause).getUserId();
                  if (userId != null && idStrategy().equals(userId, getId())) {
                      return true;
                  }
              }
          }
          return false;
      }
docs: true if {@link AbstractBuild#hasParticipant} or {@link hudson.model.Cause.UserIdCause}