VirtualFile (Project project, MavenId id) { Path path = MavenArtifactUtil.getArtifactFile(MavenProjectsManager.getInstance(project).getLocalRepository(), id); return Files.exists(path) ? LocalFileSystem.getInstance().findFileByNioFile(path) : null; }