public static UserPair getUsers(final GitHubEvent event) {
        if (event == null || event.payload() == null) {
            return null;
        }

        GitHubEventType type = event.type();
        if (GitHubEventType.FollowEvent.equals(type)) {
            User from = event.actor();
            User to = ((FollowPayload) event.payload()).target();
            if (from != null && to != null) {
                return new UserPair(from, to);
            }
        }

        return null;
    }
Get {@link UserPair} from event

@param event
@return user or null if event doesn't apply
app/src/main/java/com/github/pockethub/android/core/user/UserEventMatcher.java