List<Integer> (@Nullable Object value) { if (value instanceof List && ((List<?>)value).size() > 0 && ((List<?>)value).get(0) instanceof Integer) { //noinspection unchecked return (List<Integer>)value; } return Collections.emptyList(); }