final Multimap<String, String> result = HashMultimap.create();
for (Class serviceClass : serviceInterfaces)
{
for (Method method : serviceClass.getMethods())
{
final RequirePermission permission = method.getAnnotation(RequirePermission.class);
if (permission != null)
{
result.put(permission.value(), method.getName());
}
}
}
return result.asMap();
}