MavenWorkspaceSettingsComponent (CharSequence rawWorkspaceSettingsComponent) { try { MavenWorkspaceSettingsComponent workspaceSettingsComponent = new MavenWorkspaceSettingsComponent(myProject); Element workspaceSettingsElement = JDOMUtil.load(rawWorkspaceSettingsComponent); MavenWorkspaceSettings workspaceSettings = deserializeState(workspaceSettingsElement, MavenWorkspaceSettings.class, null); workspaceSettingsComponent.loadState(workspaceSettings); return workspaceSettingsComponent; } catch (Exception e) { throw new RuntimeException(e); } }