public @NotNull ActionContext mapToInjected(@NotNull PsiFile injectedFile) {
    if (!(injectedFile.getFileDocument() instanceof DocumentWindow documentWindow)) {
      throw new IllegalArgumentException("Not injected: " + injectedFile);
    }
    int offset = this.offset >= 0 ? documentWindow.hostToInjected(this.offset) : this.offset;
    int start = this.selection.getStartOffset() >= 0 ? documentWindow.hostToInjected(this.selection.getStartOffset()) : this.selection.getStartOffset();
    int end = this.selection.getEndOffset() >= 0 ? documentWindow.hostToInjected(this.selection.getEndOffset()) : this.selection.getEndOffset();
    return new ActionContext(project, injectedFile, offset, new TextRange(start, end), element);
  }
public @NotNull ActionContext mapToInjected(@NotNull PsiFile injectedFile)