public static boolean checkPrecedenceForBinaryOps(int childPrecedence, @NotNull IElementType parentToken, boolean isRhs) {
    int parentPrecedence = precedenceForBinaryOperator(parentToken);
    return parentPrecedence < childPrecedence ||
           parentPrecedence == childPrecedence && parentPrecedence != 0 && isRhs;
  }
public static boolean checkPrecedenceForBinaryOps(int childPrecedence, @NotNull IElementType parentToken, boolean isRhs)