import java.io.IOException; class MyTest { public MyTest() throws IOException {} void m() { MyTest test = new MyTest<>(); } { MyTest test = new MyTest<>(); } }