@RequiresApi(16)
    private static Intent getClipDataIntentFromIntent(Intent intent) {
        ClipData clipData = intent.getClipData();
        if (clipData == null) {
            return null;
        }
        ClipDescription clipDescription = clipData.getDescription();
        if (!clipDescription.hasMimeType(ClipDescription.MIMETYPE_TEXT_INTENT)) {
            return null;
        }
        if (!clipDescription.getLabel().equals(RemoteInput.RESULTS_CLIP_LABEL)) {
            return null;
        }
        return clipData.getItemAt(0).getIntent();
    }
Same as {@link #addResultsToIntent} but for setting data results.

@param remoteInput The remote input for which results are being provided
@param intent      The intent to add remote input results to. The
                   {@link ClipData} field of the intent will be
                   modified to contain the results.
@param results     A map of mime type to the Uri result for that mime type.
android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/compat/RemoteInput.java