int (@NotNull ASTNode child) { LOG.assertTrue(child.getTreeParent() == this); IElementType i = child.getElementType(); if (i == IDENTIFIER) { return ChildRole.LABEL_NAME; } else if (i == COLON) { return ChildRole.COLON; } else { if (child.getPsi() instanceof PsiStatement) { return ChildRole.STATEMENT; } return ChildRoleBase.NONE; } }