// Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.psi.impl.source.tree.injected;

import com.intellij.injected.editor.DocumentWindow;
import com.intellij.openapi.application.ApplicationManager;
import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.NotNull;

@ApiStatus.Internal
abstract class InjectedEditorWindowTracker {
  static InjectedEditorWindowTracker getInstance() {
    return ApplicationManager.getApplication().getService(InjectedEditorWindowTracker.class);
  }

  abstract void disposeInvalidEditors();

  abstract void disposeEditorFor(@NotNull DocumentWindow documentWindow);
}
