code: public static URLEntity createUrlEntity(int start, int end, String url, String expandedURL, String displayURL) {
          return new URLEntityJSONImpl(start, end, url, expandedURL, displayURL);
      }
docs: static factory method for twitter-text-java
  
  @return url entity
  @since Twitter4J 2.2.6