code: public static boolean isScalarNullableType(Field field) {
          FieldType type = field.getType();
          return STRING.equals(type) || BYTES.equals(type) || type instanceof io.protostuff.compiler.model.Enum;
      }
docs: Check if field type used to store value in java is nullable type.