protected void assertUrl(@NotNull Target target) {
    if (!target.isUrl()) {
      throw new IllegalArgumentException("Target should be url " + target);
    }
  }
protected void assertUrl(@NotNull Target target)