void (@Nullable PsiDirectory targetDirectory, @Nullable String targetFileName, @NotNull Disposable parentDisposable) { ourTargetFileName = targetFileName; ourTargetDirectory = targetDirectory; Disposer.register(parentDisposable, () -> { ourTargetFileName = null; ourTargetDirectory = null; }); }