File (Artifact artifact) { MavenWorkspaceMap.Data resolved = myWorkspaceMap.findFileAndOriginalId(new MavenId(artifact.getGroupId(), artifact.getArtifactId(), artifact.getVersion())); if (resolved == null) return null; return resolved.getFile(artifact.getExtension()); }