private @Nullable Path typedPath() {
    var object = myPath.getEditor().getItem();
    if (object instanceof PathWrapper wrapper) {
      return wrapper.path;
    }
    if (object instanceof String str && !str.isBlank()) {
      var path = findByPath(FileUtil.expandUserHome(str.trim()));
      if (path != null && path.isAbsolute()) {
        return path;
      }
    }
    return null;
  }
private @Nullable Path typedPath()