boolean (@Nullable String path1, @Nullable String path2) { if (Strings.areSameInstance(path1, path2)) return true; if (path1 == null || path2 == null) return false; path1 = toCanonicalPath(path1); path2 = toCanonicalPath(path2); return SystemInfoRt.isFileSystemCaseSensitive ? path1.equals(path2) : path1.equalsIgnoreCase(path2); }