code: public static DeviceType getDeviceType(@NonNull final Context context) {
          Condition.INSTANCE.ensureNotNull(context, "The context may not be null");
          return DeviceType.fromValue(context.getString(R.string.device_type));
      }
docs: Returns the type of the device, depending on its display size.
  
  @param context
  The context, which should be used, as an instance of the class {@link Context}. The
  context may not be null
  @return The type of the device as a value of the enum {@link DeviceType}. The type may either
  be <code>PHONE</code>, <code>PHABLET</code> or <code>TABLET</code>