boolean (@NotNull PsiExpression operand, @NotNull ExpressionFormat fmt, @Nullable IElementType tokenType, boolean isNegated, @NotNull StringBuilder sb) { PsiPolyadicExpression polyadic = ObjectUtils.tryCast(operand, PsiPolyadicExpression.class); if (polyadic != null && EliminateUtils.isAdditive(polyadic.getOperationTokenType())) { return eliminateExpression(polyadic, fmt, tokenType, isNegated, sb); } StringBuilder operandText = new StringBuilder(); if (polyadic != null) { isNegated = EliminateUtils.isNegated(polyadic, isNegated); PsiJavaToken outerToken = myExpression == null ? null : myExpression.getTokenBeforeOperand(myOperand); IElementType outerTokenType = outerToken == null ? null : outerToken.getTokenType(); if (!getMultiplicativeOperandText(polyadic, outerTokenType, operandText)) return false; } else { operandText.append(operand.getText()); } if (!EliminateUtils.addPrefix(tokenType, isNegated, sb)) return false; sb.append(fmt.format(operandText.toString())); return true; }