return nextLabel;
}
private void checkSuccessorValid(@NotNull GrLabeledStatement nextLabeledStatement) {
if (SpockLabel.contains(nextLabeledStatement)) {
SpockLabel nextSpockLabel = SpockLabel.valueOf(nextLabeledStatement);
if (nextSpockLabel != null && !spockLabel.getSuccessors().contains(nextSpockLabel)) {
PsiElement nextLabel = GrLabeledStatementAdapter.getInstance().getLabel(nextLabeledStatement);
registerError(nextLabel);
}
}