File (String className, Module module) { VirtualFile out = ModuleRootManager.getInstance(module).getModuleExtension(CompilerModuleExtension.class).getCompilerOutputPath(); assert out != null; File cls = new File(out.getPath(), className.replace('.', '/') + ".class"); return cls.exists() ? cls : null; }