String (@NotNull String path) { try { Path file = Path.of(FileUtil.expandUserHome(path)); if (!file.isAbsolute() && myBaseDir != null) { file = myBaseDir.resolve(path).toAbsolutePath(); } return trimUncRoot(file.toString()); } catch (InvalidPathException ignored) { } catch (IOError e) { Logger.getInstance(LocalFsFinder.class).info("path=" + path + "; base=" + myBaseDir, e); } return path; }