code: public static void applyParagraphStyle(P p, R run) {
          if (p.getPPr() != null && p.getPPr().getRPr() != null) {
              RPr runProperties = new RPr();
              StyleUtil.apply(p.getPPr().getRPr(), runProperties);
              run.setRPr(runProperties);
          }
      }
docs: Applies the style of the given paragraph to the given content object (if the content object is a Run).
  
  @param p   the paragraph whose style to use.
  @param run the Run to which the style should be applied.