void (@Nullable Project project, @Nullable WizardContext wizardContext) { if (wizardContext != null && wizardContext.getProject() != null) { project = wizardContext.getProject(); } if (project != null && project != myProjectRef.get()) { Disposer.register(project, myProjectRefDisposable); } myProjectRef.set(project); }