private static MultiMap<String, IdeaPlugin> getPluginMap(final Project project) { MultiMap<String, IdeaPlugin> byId = new LinkedMultiMap<String, IdeaPlugin>(); for (IdeaPlugin each : IdeaPluginConverter.getAllPlugins(project)) { byId.putValue(each.getPluginId(), each); } return byId; }
private static synchronized MultiMap<String, Trinity<Matcher, String, String>> getAllFileNames(List<Trinity<Matcher, String, String>> input, final GotoFileModel model) { LinkedMultiMap<String, Trinity<Matcher, String, String>> map = new LinkedMultiMap<String, Trinity<Matcher, String, String>>(); for (String name : model.getNames(false)) { ProgressManager.checkCanceled(); for (Trinity<Matcher, String, String> trinity : input) { if (trinity.first.matches(name)) { map.putValue(name, trinity); } } } return map; }