boolean (GrCaseSection psiParent, int newIndex) { GrStatement[] statements = psiParent.getStatements(); newIndex--; if (psiParent.getArrow() != null && statements.length == 1) { return true; } for (int i = 0; i < statements.length && i < newIndex; i++) { PsiElement child = statements[i]; if (child instanceof GrBreakStatement || child instanceof GrContinueStatement || child instanceof GrReturnStatement || child instanceof GrYieldStatement || child instanceof GrThrowStatement) { return true; } } return false; }