@Override
    public PsiFile resolve(MavenId id, ConvertContext context) {
      if (StringUtil.isEmpty(id.getGroupId())) {
        for (String each : MavenArtifactUtil.DEFAULT_GROUPS) {
          MavenId withGroupId = new MavenId(each, id.getArtifactId(), id.getVersion());
          PsiFile res = super.resolve(withGroupId, context);
          if (res != null) return res;
        }
      }

      PsiFile res = super.resolve(id, context);
      if (res != null) return res;

      MavenProjectsManager projectsManager = MavenProjectsManager.getInstance(context.getProject());

      if (StringUtil.isEmpty(id.getGroupId())) {
        for (String each : MavenArtifactUtil.DEFAULT_GROUPS) {
          MavenId withGroupId = new MavenId(each, id.getArtifactId(), id.getVersion());
          res = super.resolve(withGroupId, context);
          if (res != null) return res;
        }
      }

      res = tryToResolveToImportedPlugins(id, context);
      if (res != null) return res;

      // Try to resolve to plugin with latest version
      PsiManager psiManager = context.getPsiManager();

      Path artifactFile = MavenArtifactUtil
        .getArtifactNioPath(projectsManager.getLocalRepository(), id.getGroupId(), id.getArtifactId(), id.getVersion(), "pom");

      VirtualFile virtualFile = LocalFileSystem.getInstance().findFileByNioFile(artifactFile);
      if (virtualFile != null) {
        return psiManager.findFile(virtualFile);
      }

      return null;
    }
@Override
    public PsiFile resolve(MavenId id, ConvertContext context)