private ListModel createListModel(FileUi[] files) {
if (files.length == 0) {
Font font = TextStyles.DefaultListText.getFont();
String text = getString("SourceDataFileProvider.NoFilesAvailable");
ListDecorator data = new ItalicTextListDecorator(text, null, null, font);
return ListUtils.createModel(data);
} else {
return ListUtils.createModel((Object[]) files);
}
}