@Override
  @Nullable
  public FilePath getParentPath() {
    String parent = PathUtil.getParentPath(myPath);

    if (SystemInfo.isWindows) {
      if (parent.isEmpty()) {
        return null;
      }
      if (!myPath.startsWith("/") && !parent.contains("/")) {
        // make sure we use "C:/" instead of "C:", to match VirtualFile.
        return new LocalFilePath(parent + "/", true, null);
      }
    }
    else {
      if (parent.isEmpty()) {
        if (myPath.length() > 1 && myPath.startsWith("/")) {
          return new LocalFilePath("/", true, null);
        }
        else {
          return null;
        }
      }
    }

    return new LocalFilePath(parent, true, null);
  }
@Override
  @Nullable
  public FilePath getParentPath()