if (FGUtil.getSelectedRegions(source).size() == 0)
throw new CommandException(Text.of("You don't have any regions in your state buffer!"));
if (FGUtil.getSelectedHandlers(source).size() == 0)
throw new CommandException(Text.of("You don't have any handlers in your state buffer!"));
int[] count = {0};
<BUG>FGUtil.getSelectedRegions(source).stream().forEach(
region -> FGUtil.getSelectedHandlers(source).stream()</BUG>
.filter(handler -> !(handler instanceof GlobalHandler))
.forEach(handler -> count[0] += FGManager.getInstance().unlink(region, handler) ? 1 : 0));
source.sendMessage(Text.of(TextColors.GREEN, "Successfully unlinked " + count[0] + "!"));

if (FGUtil.getSelectedRegions(source).size() == 0)
throw new CommandException(Text.of("You don't have any regions in your state buffer!"));
if (FGUtil.getSelectedHandlers(source).size() == 0)
throw new CommandException(Text.of("You don't have any handlers in your state buffer!"));
int[] count = {0};
FGUtil.getSelectedRegions(source).forEach(
region -> FGUtil.getSelectedHandlers(source).stream()
.filter(handler -> !(handler instanceof GlobalHandler))
.forEach(handler -> count[0] += FGManager.getInstance().unlink(region, handler) ? 1 : 0));
source.sendMessage(Text.of(TextColors.GREEN, "Successfully unlinked " + count[0] + "!"));
