SuccessAndResult<ThriftType> output = topologicalSort(thriftTypes, new Predicate<ThriftType>()
{
@Override
public boolean apply(@Nullable ThriftType t)
{
ThriftProtocolType proto = checkNotNull(t).getProtocolType();
if (proto == ThriftProtocolType.ENUM || proto == ThriftProtocolType.STRUCT) {
return verifyStruct(t, true);
} else {
Preconditions.checkState(false, "Top-level non-enum and non-struct?");
return false; // silence compiler