static private Intent getIntentForURI(Uri data) {
        if (HOST_GISTS.equals(data.getHost())) {
            Gist gist = GistUriMatcher.getGist(data);
            if (gist != null) {
                return GistsViewActivity.Companion.createIntent(gist);
            }
        } else if (HOST_DEFAULT.equals(data.getHost())) {
            CommitMatch commit = CommitUriMatcher.getCommit(data);
            if (commit != null) {
                return CommitViewActivity.Companion.createIntent(commit.getRepository(), commit.getCommit());
            }

            Issue issue = IssueUriMatcher.getIssue(data);
            if (issue != null) {
                return IssuesViewActivity.Companion.createIntent(issue, issue.repository());
            }

            Repository repository = RepositoryUriMatcher.getRepository(data);
            if (repository != null) {
                return RepositoryViewActivity.Companion.createIntent(repository);
            }

            User user = UserUriMatcher.getUser(data);
            if (user != null) {
                return UserViewActivity.Companion.createIntent(user);
            }
        }

        return null;
    }
Convert global view intent one into one that can be possibly opened
inside the current application.

@param intent
@return converted intent or null if non-application specific
app/src/main/java/com/github/pockethub/android/ui/user/UriLauncherActivity.java