No functional changes intended. This patch extracts functionality to get all `bAnimListElem` that are editable in the Graph Editor into a separate function so it can be re-used by other operators. This makes it easy to ensure the same data is retrieved and filter flags can't go out of sync. Extracted from #135913 Part of: #135794 Pull Request: https://projects.blender.org/blender/blender/pulls/137142