boolean (PsiExpression expression) { if (!(expression instanceof PsiPrefixExpression prefixExpression)) { return false; } final IElementType tokenType = prefixExpression.getOperationTokenType(); if (!JavaTokenType.MINUS.equals(tokenType)) { return false; } final PsiExpression operand = prefixExpression.getOperand(); return operand instanceof PsiLiteralExpression; }