@Nullable annotation implies that the argument could be null. Correct fix is to keep the @Nullable annotation and do the following:
return field != null ? field.getName() : null;