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