boolean (@Nullable VirtualFile ancestor) { if (ancestor == null) return false; VirtualFile homeDir = VfsUtil.getUserHomeDir(); return homeDir != null && VfsUtilCore.isAncestor(homeDir, ancestor, true); }