boolean (@NotNull PsiStatement statement) { PsiElement parent = statement.getParent(); while (parent instanceof PsiLabeledStatement) { statement = (PsiStatement)parent; parent = parent.getParent(); } final ContinueToAncestorFinder continueToAncestorFinder = new ContinueToAncestorFinder(statement); statement.accept(continueToAncestorFinder); return continueToAncestorFinder.continueToAncestorFound(); }