public class LivePluginUsagesCollector extends UsagesCollector {
@NotNull @Override public Set<UsageDescriptor> getUsages(@Nullable Project project) throws CollectUsagesException {
HashSet<UsageDescriptor> result = new HashSet<UsageDescriptor>();
Settings settings = Settings.getInstance();
for (Map.Entry<String, Integer> entry : settings.pluginsUsage.entrySet()) {
result.add(new UsageDescriptor(entry.getKey(), entry.getValue()));
}
result.add(new UsageDescriptor("runAllPluginsOnIDEStartup", settings.runAllPluginsOnIDEStartup ? 1 : 0));
return result;
}