boolean (@Nullable VirtualFile parent, CharSequence name, String symlinkTarget) { // parent == null means name is root //noinspection StaticMethodReferencedViaSubclass return parent != null ? VfsUtilCore.isAncestorOrSelf(StringUtil.trimEnd(symlinkTarget, "/" + name), parent) : StringUtil.equal(name, symlinkTarget, SystemInfo.isFileSystemCaseSensitive); }