ArtifactEditorSettingsState () { final ArtifactEditorSettingsState state = new ArtifactEditorSettingsState(); state.mySortElements = mySortElements; for (ComplexPackagingElementType<?> type : myTypesToShowContent) { state.myTypesToShowContentIds.add(type.getId()); } return state; }