Source:
<code>private static void assertEqualsWithoutUsages(ClassSymbolImpl classSymbol) { ClassSymbolImpl copied = classSymbol.copyWithoutUsages(); assertThat(copied.hasUnresolvedTypeHierarchy()).isEqualTo(classSymbol.hasUnresolvedTypeHierarchy()); List<String> copiedfqnSuperClasses = copied.superClasses().stream().map(Symbol::fullyQualifiedName).collect(Collectors.toList()); List<String> fqnSuperClasses = classSymbol.superClasses().stream().map(Symbol::fullyQualifiedName).collect(Collectors.toList()); assertThat(copiedfqnSuperClasses).isEqualTo(fqnSuperClasses); List<Symbol.Kind> copiedKindSuperClasses = copied.superClasses().stream().map(Symbol::kind).collect(Collectors.toList()); List<Symbol.Kind> kindSuperClasses = classSymbol.superClasses().stream().map(Symbol::kind).collect(Collectors.toList()); assertThat(copiedKindSuperClasses).isEqualTo(kindSuperClasses); List<String> copiedFqnMembers = copied.declaredMembers().stream().map(Symbol::fullyQualifiedName).collect(Collectors.toList()); List<String> fqnMembers = classSymbol.declaredMembers().stream().map(Symbol::fullyQualifiedName).collect(Collectors.toList()); assertThat(copiedFqnMembers).isEqualTo(fqnMembers); List<Symbol.Kind> copiedKindMembers = copied.declaredMembers().stream().map(Symbol::kind).collect(Collectors.toList()); List<Symbol.Kind> kindMembers = classSymbol.declaredMembers().stream().map(Symbol::kind).collect(Collectors.toList()); assertThat(copiedKindMembers).isEqualTo(kindMembers); <START> assertThat(copied.declaredMembers()).hasSize(classSymbol.declaredMembers().size()); <END> assertThat(copied.usages()).isEmpty(); }</code><technical_language>this assertion redundant 2 previous ones</technical_language>

Target:
private static void assertEqualsWithoutUsages(ClassSymbolImpl classSymbol) { ClassSymbolImpl copied = classSymbol.copyWithoutUsages(); assertThat(copied.hasUnresolvedTypeHierarchy()).isEqualTo(classSymbol.hasUnresolvedTypeHierarchy()); List<String> copiedfqnSuperClasses = copied.superClasses().stream().map(Symbol::fullyQualifiedName).collect(Collectors.toList()); List<String> fqnSuperClasses = classSymbol.superClasses().stream().map(Symbol::fullyQualifiedName).collect(Collectors.toList()); assertThat(copiedfqnSuperClasses).isEqualTo(fqnSuperClasses); List<Symbol.Kind> copiedKindSuperClasses = copied.superClasses().stream().map(Symbol::kind).collect(Collectors.toList()); List<Symbol.Kind> kindSuperClasses = classSymbol.superClasses().stream().map(Symbol::kind).collect(Collectors.toList()); assertThat(copiedKindSuperClasses).isEqualTo(kindSuperClasses); List<String> copiedFqnMembers = copied.declaredMembers().stream().map(Symbol::fullyQualifiedName).collect(Collectors.toList()); List<String> fqnMembers = classSymbol.declaredMembers().stream().map(Symbol::fullyQualifiedName).collect(Collectors.toList()); assertThat(copiedFqnMembers).isEqualTo(fqnMembers); List<Symbol.Kind> copiedKindMembers = copied.declaredMembers().stream().map(Symbol::kind).collect(Collectors.toList()); List<Symbol.Kind> kindMembers = classSymbol.declaredMembers().stream().map(Symbol::kind).collect(Collectors.toList()); assertThat(copiedKindMembers).isEqualTo(kindMembers); assertThat(copied.usages()).isEmpty(); }