VirtualFile (Artifact artifact) { final String output = artifact.getOutputPath(); assertNotNull("output path not specified for " + artifact.getName(), output); final VirtualFile outputFile = LocalFileSystem.getInstance().refreshAndFindFileByPath(output); assertNotNull("output file not found " + output, outputFile); return outputFile; }