import lombok.SneakyThrows; class SneakyThrowsPlain { @lombok.SneakyThrows SneakyThrowsPlain() { super(); System.out.println("constructor"); } @lombok.SneakyThrows public void test() { System.out.println("test1"); } @SneakyThrows public void test2() { System.out.println("test2"); } }