unity/Assets/PostProcessingV2/Editor/BaseEditor.cs (19 lines of code) (raw):

using System; using System.Linq.Expressions; using UnityEngine; using UnityEngine.Rendering.PostProcessing; namespace UnityEditor.Rendering.PostProcessing { public class BaseEditor<T> : Editor where T : MonoBehaviour { protected T m_Target { get { return (T)target; } } protected SerializedProperty FindProperty<TValue>(Expression<Func<T, TValue>> expr) { return serializedObject.FindProperty(RuntimeUtilities.GetFieldPath(expr)); } } }