EditorState: extract anonymous classes