void (@NotNull PsiPrefixExpression expression) { PsiExpression operand = expression.getOperand(); if (operand == null) { myIsConstant = false; return; } operand.accept(this); if (!myIsConstant) return; IElementType opType = expression.getOperationTokenType(); if (opType == JavaTokenType.PLUS || opType == JavaTokenType.MINUS || opType == JavaTokenType.TILDE || opType == JavaTokenType.EXCL) { return; } myIsConstant = false; }