boolean (PsiExpression expression) { expression = PsiUtil.deparenthesizeExpression(expression); if (expression instanceof PsiPrefixExpression) { return hasMultiplication(((PsiPrefixExpression)expression).getOperand()); } if (expression instanceof PsiPolyadicExpression polyExpr) { final IElementType tokenType = polyExpr.getOperationTokenType(); if (tokenType == JavaTokenType.ASTERISK) { return true; } return hasInnerMultiplication(polyExpr); } if (expression instanceof PsiConditionalExpression ternary) { return hasMultiplication(ternary.getThenExpression()) || hasMultiplication(ternary.getElseExpression()); } return false; }