String (@NotNull UpdateInfoTree tree) { String scopeText = null; NamedScope scopeFilter = tree.getFilterScope(); if (scopeFilter != null) { int filteredFiles = tree.getFilteredFilesCount(); String filterName = scopeFilter.getPresentableName(); if (filteredFiles == 0) { scopeText = VcsBundle.message("update.file.name.wasn.t.modified", filterName); } else { scopeText = VcsBundle.message("update.filtered.files.count.in.filter.name", filteredFiles, filterName); } } return scopeText; }