boolean (@Nullable FilePath path1, @Nullable FilePath path2) { if (path1 == path2) return true; if (path1 == null || path2 == null) return false; return path1.isDirectory() == path2.isDirectory() && path1.getPath().equals(path2.getPath()); }