RefResolverProcessor: cleanup code, change return type

Signed-off-by: Francis Galiegue <fgaliegue@gmail.com>