@classmethod<EOL><INDENT>def _resolve_widget(cls, file, widget):<DEDENT>
return widget.__class__(*[<EOL>value(file) if callable(value) else value<EOL>for value in widget<EOL>])<EOL>
Resolve widget callable properties into static ones.

:param file: file will be used to resolve callable properties.
:type file: browsepy.file.Node
:param widget: widget instance optionally with callable properties
:type widget: object
:returns: a new widget instance of the same type as widget parameter
:rtype: object