I also needed to add modules “SlateCore”, “Slate”, “UnrealEd”.
And to exclude compile error in cooking:
if (Target.Type == TargetType.Editor)
{
PrivateDependencyModuleNames.AddRange(new string[] { "SlateCore", "Slate", "UnrealEd", "EditorStyle" });
}