private static boolean isClosingParenthesisAfterTrailingComma(ASTNode node) {
    if (node.getElementType() != T_RPAREN) {
      return false;
    }
    if (!(node.getTreeParent().getPsi() instanceof GrArgumentList)) {
      return false;
    }
    PsiElement prev = PsiUtilKt.skipWhiteSpacesAndNewLinesBackward(node.getPsi());
    if (prev == null) {
      return false;
    }
    return prev.getNode().getElementType() == T_COMMA;
  }
private static boolean isClosingParenthesisAfterTrailingComma(ASTNode node)