private void purgeSerializeSupportQueue(TreeLogger logger) throws UnableToCompleteException { while (!needsSerializeSupport.isEmpty()) { Iterator<JType> iterator = needsSerializeSupport.iterator(); JType type = iterator.next(); iterator.remove(); if (hasSerializeSupport(type)) { continue; } addSerializeSupport(logger, type); } }