public static bool TryGetFigmaNode(this ProjectFile sender, NodeProvider fileProvider, out FigmaNode figmaNode) { if (sender.HasFigmaDesignerFileExtension() && TryGetNodeName(sender, out var figmaName)) { figmaNode = fileProvider.FindByCustomName(figmaName); return(figmaNode != null); } figmaNode = null; return(false); }