code: public static int pixelsToDp(@NonNull final Context context, final int pixels) {
          Condition.INSTANCE.ensureNotNull(context, "The context may not be null");
          DisplayMetrics displayMetrics = context.getResources().getDisplayMetrics();
          return Math.round(pixels / (displayMetrics.densityDpi / PIXEL_DP_RATIO));
      }
docs: Converts an {@link Integer} value, which is measured in pixels, into a value, which is
  measured in dp.
  
  @param context
  The context, which should be used, as an instance of the class {@link Context}. The
  context may not be null
  @param pixels
  The pixel value, which should be converted, as an {@link Integer} value
  @return The calculated dp value as an {@link Integer} value. The value might be rounded