private void sendAfterChildrenChangedEvent(@NotNull PsiFile scope, int oldLength) {
    if (!shouldFirePhysicalPsiEvents(scope)) {
      getPsiManager().afterChange(false);
      return;
    }
    PsiTreeChangeEventImpl event = new PsiTreeChangeEventImpl(getPsiManager());
    event.setParent(scope);
    event.setFile(scope);
    event.setOffset(0);
    event.setOldLength(oldLength);
    event.setGenericChange(true);
    getPsiManager().childrenChanged(event);
  }
private void sendAfterChildrenChangedEvent(@NotNull PsiFile scope, int oldLength)