private static boolean isInExitStatements(@NotNull PsiElement element, @NotNull Collection<? extends PsiStatement> exitStatements) {
    for (PsiStatement exitStatement : exitStatements) {
      if (PsiTreeUtil.isAncestor(exitStatement, element, false)) return true;
    }
    return false;
  }
private static boolean isInExitStatements(@NotNull PsiElement element, @NotNull Collection<? extends PsiStatement> exitStatements)