@NotNull
  public static VirtualFile getVFileBaseDir(@NotNull VirtualFile file) {
    VirtualFile baseDir = file.isDirectory() || file.getParent() == null ? file : file.getParent();
    VirtualFile dir = baseDir;
    do {
      VirtualFile child = dir.findChild(".mvn");

      if (child != null && child.isDirectory()) {
        if (MavenLog.LOG.isTraceEnabled()) {
          MavenLog.LOG.trace("found .mvn in " + child);
        }
        baseDir = dir;
        break;
      }
    }
    while ((dir = dir.getParent()) != null);
    if (MavenLog.LOG.isTraceEnabled()) {
      MavenLog.LOG.trace("return " + baseDir + " as baseDir");
    }
    return baseDir;
  }
@NotNull
  public static VirtualFile getVFileBaseDir(@NotNull VirtualFile file)