boolean (@Nullable String groupId, @Nullable String artifactId, @Nullable String version) { if (!equals(groupId, artifactId)) return false; if (this.version != null ? !this.version.equals(version) : version != null) return false; return true; }