code: @CheckForNull
    public Block first(String resourceId) {
      for (Block block : blocks) {
        if (resourceId.equals(block.getResourceId())) {
          return block;
        }
      }
      return null;
    }
docs: First block from this group with specified resource id.