// Path: app/src/main/java/com/lucilu/rxdynamicsearch/utils/Preconditions.java
// public static <T> T checkNotNull(final T reference, @NonNull final String errorMessage) {
//     if (reference == null) {
//         throw new NullPointerException(get(errorMessage));
//     }
//     return reference;
// }
// 
// Path: app/src/main/java/com/lucilu/rxdynamicsearch/utils/Preconditions.java
// @NonNull
// public static <T> T get(@Nullable final T reference) {
//     if (reference == null) {
//         throw new NullPointerException("Assertion for a nonnull object failed.");
//     }
//     return reference;
// }


import android.app.Activity;
import android.support.annotation.NonNull;
import android.view.View;
import static com.lucilu.rxdynamicsearch.utils.Preconditions.checkNotNull;
import static com.lucilu.rxdynamicsearch.utils.Preconditions.get;
package com.lucilu.rxdynamicsearch.utils;



public final class ViewUtils {

    @SuppressWarnings("unchecked")
    @NonNull
    public static <T extends View> T find(@NonNull final Activity activity, int id) {
// Path: app/src/main/java/com/lucilu/rxdynamicsearch/utils/Preconditions.java
// public static <T> T checkNotNull(final T reference, @NonNull final String errorMessage) {
//     if (reference == null) {
//         throw new NullPointerException(get(errorMessage));
//     }
//     return reference;
// }
// 
// Path: app/src/main/java/com/lucilu/rxdynamicsearch/utils/Preconditions.java
// @NonNull
// public static <T> T get(@Nullable final T reference) {
//     if (reference == null) {
//         throw new NullPointerException("Assertion for a nonnull object failed.");
//     }
//     return reference;
// }


// Path: app/src/main/java/com/lucilu/rxdynamicsearch/utils/ViewUtils.java
import android.app.Activity;
import android.support.annotation.NonNull;
import android.view.View;
import static com.lucilu.rxdynamicsearch.utils.Preconditions.checkNotNull;
import static com.lucilu.rxdynamicsearch.utils.Preconditions.get;

package com.lucilu.rxdynamicsearch.utils;



public final class ViewUtils {

    @SuppressWarnings("unchecked")
    @NonNull
    public static <T extends View> T find(@NonNull final Activity activity, int id) {
        checkNotNull(activity, "The activity cannot be null");