@Nullable protected VirtualFile findClassFile(String className) { final CompilerModuleExtension extension = ModuleRootManager.getInstance(myModule).getModuleExtension(CompilerModuleExtension.class); //noinspection ConstantConditions return extension.getCompilerOutputPath().findChild(className + ".class"); }
@Nullable protected VirtualFile findClassFile(String className, Module module) { //noinspection ConstantConditions VirtualFile path = ModuleRootManager.getInstance(module) .getModuleExtension(CompilerModuleExtension.class) .getCompilerOutputPath(); path.getChildren(); assert path != null; path.refresh(false, true); return path.findChild(className + ".class"); }