}
private static void checkFunction(final InspectionResult result, GoFunctionDeclaration function) {
final Map<String, GoLiteralIdentifier> labelDeclarations = new HashMap<String, GoLiteralIdentifier>();
final List<GoLiteralIdentifier> labelUsages = new ArrayList<GoLiteralIdentifier>();
new GoRecursiveElementVisitor() {
@Override
public void visitLabeledStatement(GoLabeledStatement statement) {
GoLiteralIdentifier label = statement.getLabel();
String name = label.getName();
if (labelDeclarations.containsKey(name)) {