// Register project-level config managers
MessageBus bus = project.getMessageBus();
codeStyleManager = new CodeStyleManager(project);
EditorSettingsManager editorSettingsManager = new EditorSettingsManager();
EncodingManager encodingManager = new EncodingManager(project);
LineEndingsManager lineEndingsManager = new LineEndingsManager(project);
bus.connect().subscribe(FileEditorManagerListener.FILE_EDITOR_MANAGER, codeStyleManager);
bus.connect().subscribe(AppTopics.FILE_DOCUMENT_SYNC, encodingManager);
bus.connect().subscribe(AppTopics.FILE_DOCUMENT_SYNC, editorSettingsManager);
bus.connect().subscribe(AppTopics.FILE_DOCUMENT_SYNC, lineEndingsManager);
}