private static boolean hasRParenth(PsiExpressionList args) {
    if (args == null) return false;
    PsiElement parenth = args.getLastChild();
    return parenth != null && ")".equals(parenth.getText());
  }
private static boolean hasRParenth(PsiExpressionList args)