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