protected void lineHasStoppablePsi(@NotNull Project project,
                                     int line,
                                     Document document,
                                     Class<? extends PsiElement>[] unstoppablePsiElements,
                                     Set<IElementType> unstoppableElementTypes,
                                     Ref<? super Boolean> stoppable) {
    XDebuggerUtil.getInstance().iterateLine(project, document, line, psiElement -> {
      if (PsiTreeUtil.getNonStrictParentOfType(psiElement, unstoppablePsiElements) != null) return true;
      if (psiElement.getNode() != null && unstoppableElementTypes.contains(psiElement.getNode().getElementType())) return true;
      if (isPsiElementStoppable(psiElement)) {
        stoppable.set(true);
      }
      return false;
    });

    if (PyDebugSupportUtils.isContinuationLine(document, line - 1)) {
      stoppable.set(false);
    }
  }
protected void lineHasStoppablePsi(@NotNull Project project,
                                     int line,
                                     Document document,
                                     Class<? extends PsiElement>[] unstoppablePsiElements,
                                     Set<IElementType> unstoppableElementTypes,
                                     Ref<? super Boolean> stoppable)