void (@NotNull ActionCallback actionCallback, @NotNull PlaybackContext context) { String[] arguments = getText().split(" ", 3); String filePath = arguments[1]; long timeout = Long.parseLong(arguments[2]); Project project = context.getProject(); VirtualFile file = findFile(filePath, project); assert file != null : PerformanceTestingBundle.message("command.file.not.found", filePath); FileEditorManager.getInstance(project).openFile(file, true); ApplicationManager.getApplication().executeOnPooledThread(() -> { try { TimeUnit.SECONDS.sleep(timeout); ApplicationManager.getApplication().exit(true, true, false); actionCallback.setDone(); } catch (InterruptedException e) { actionCallback.reject(e.getMessage()); } }); }