public static @Nullable Cursor cursorIfNotDefault(@Nullable Cursor cursorToSet) {
    return cursorToSet != null && cursorToSet.getType() != Cursor.DEFAULT_CURSOR ? cursorToSet : null;
  }
public static @Nullable Cursor cursorIfNotDefault(@Nullable Cursor cursorToSet)