DocumentListener (@NotNull Project project, @NotNull DocumentListener listener) { //noinspection TestOnlyProblems return ProjectManagerImpl.Companion.isLight(project) ? new ProjectDisposeAwareDocumentListener(project, listener) : listener; }