int (@NotNull ASTNode child) { LOG.assertTrue(child.getTreeParent() == this); IElementType i = child.getElementType(); if (i == LBRACKET) { return ChildRole.LBRACKET; } else if (i == RBRACKET) { return ChildRole.RBRACKET; } else { if (EXPRESSION_BIT_SET.contains(child.getElementType())) { return child == getFirstChildNode() ? ChildRole.ARRAY : ChildRole.INDEX; } else { return ChildRoleBase.NONE; } } }