One of the awesome features of Emacs "paredit" mode that works with Lisp-like as well as other languages like Java/Scala is the ability to just hit Ctrl-k (kill), and it will smartly delete text until the appropriate delimiter, which could be a closing quote-mark, or a closing brace/paren/square-bracket. It will essentially delete things while still keeping your code syntactically valid, i.e. it will delete exactly the right number of closing parens/braces, etc.
Is there such an action or keyboard shortcut in Intellij IDEA? Or how would I define a macro to do this?