public static boolean isNegative(@NotNull PsiExpression expression) {
    return expression.getParent() instanceof PsiPrefixExpression prefixExpression &&
           JavaTokenType.MINUS.equals(prefixExpression.getOperationTokenType());
  }
public static boolean isNegative(@NotNull PsiExpression expression)