boolean (JpsModule m, final String classPath) { File file = new File(JpsJavaExtensionService.getInstance().getOutputDirectory(m, false), classPath); assertTrue(file.getAbsolutePath() + " not found", file.exists()); final Ref<Boolean> instrumented = Ref.create(false); ClassVisitor visitor = new ClassVisitor(Opcodes.API_VERSION) { @Override public MethodVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions) { if (name.equals("$$$setupUI$$$")) { instrumented.set(true); } return null; } }; try { ClassReader reader = new ClassReader(FileUtil.loadFileBytes(file)); reader.accept(visitor, 0); return instrumented.get(); } catch (IOException e) { throw new RuntimeException(e); } }