[DF-3327] refactor logic in fileDialogs(propertyEditor, material editor)