boolean (@NotNull Path target) { Path home = Paths.get(getHomePath()); try { home = home.toRealPath(); target = target.toRealPath(); } catch (IOException ignored) { } return target.startsWith(home); }