import java.io.IOException; @FunctionalInterface interface ThrowableRunnable { void get() throws E; static void m(ThrowableRunnable supplier, Object... params) throws E {} default void getContent() { try { m(() -> { throw new IOException(); }); } catch (IOException e) { } } }