import java.util.Optional;
import java.util.Set;
import java.util.stream.Collectors;
public interface TypeDeclaration extends Declaration, TypeParametrizable {
default Set<TypeDeclaration> internalTypes() {
<BUG>throw new UnsupportedOperationException();
}</BUG>
default Optional<TypeDeclaration> containerType() {
throw new UnsupportedOperationException("containerType is not supported for " + this.getClass().getCanonicalName());
}

import java.util.Optional;
import java.util.Set;
import java.util.stream.Collectors;
public interface TypeDeclaration extends Declaration, TypeParametrizable {
default Set<TypeDeclaration> internalTypes() {
throw new UnsupportedOperationException("InternalTypes not available for " + this);
}
default Optional<TypeDeclaration> containerType() {
throw new UnsupportedOperationException("containerType is not supported for " + this.getClass().getCanonicalName());
}
