void () { System.out.println("Start compacting to index"); try { Object index = getIndex(); Method method = Class.forName("com.intellij.execution.testDiscovery.TestDiscoveryExtension") .getMethod("processTracesFile", String.class, String.class, byte.class, myDiscoveryIndexClass); method.invoke(null, myTracesFile, myModuleName, (byte)'j', index); System.out.println("Compacting done."); } catch (Throwable e) { e.printStackTrace(); } zipOutput(myTracesFile); }