code: public static boolean useParentheses(int pSelf, int pNested) {
          if (pSelf == PrecedencedSelfDescribing.P_NONE
                  || pSelf == PrecedencedSelfDescribing.P_UNARY_NO_PAREN) {
              return false;
          }
          if (pNested < PrecedencedSelfDescribing.P_UNARY) {
              return pNested <= pSelf;
          } else {
              return pNested < pSelf;
          }
      }
docs: Compares own precedence against nested and return
  @param pSelf
  @param pNested
  @return true iff parentheses should be used