void () { try { Module[] modules = ModuleManager.getInstance(myProject).getModules(); if (modules.length != 1) { throw new IllegalArgumentException("Only one module is expected"); } myCompilerTester = new CompilerTester(modules[0]); } catch (Throwable e) { ExceptionUtil.rethrowAllAsUnchecked(e); } }