How to add catch clause for exception in javadoc @throws param

I have something like:

try {
                            X500Principal prin = new X500Principal(foo);
                      } catch (IllegalArgumentException ex) {


how can I let IntelliJ IDEA generate the missing

} catch (NullPointerException e) {

specified in constructor???

I would like something like the ALT + INS or an intention when the cursor is over "new X500Principal"

Please sign in to leave a comment.