HgFile (String... filepath) { File fileToInclude = projectRepo; for (String path : filepath) { fileToInclude = new File(fileToInclude, path); } return new HgFile(projectRepoVirtualFile, fileToInclude); }