boolean (String parent, String path) { if (equals(parent, path)) return true; parent = appendParent(parent); return myIsCaseSensitive ? path.startsWith(parent) : StringUtil.startsWithIgnoreCase(path, parent); }