public static IStackFilter getGateFilter(IDockingStation station) {
Collection<ItemStack> stacks = getGateFilterStacks(station);
if (stacks.size() == 0) {
return new PassThroughStackFilter();
} else {
return new ArrayStackOrListFilter(stacks.toArray(new ItemStack[stacks.size()]));
}
}