int (@NotNull ASTNode child) { LOG.assertTrue(child.getTreeParent() == this); IElementType i = child.getElementType(); if (i == JavaTokenType.COMMA) { return ChildRole.COMMA; } else if (i == JavaTokenType.LPARENTH) { return ChildRole.LPARENTH; } else if (i == JavaTokenType.RPARENTH) { return ChildRole.RPARENTH; } else { if (ElementType.EXPRESSION_BIT_SET.contains(child.getElementType())) { return ChildRole.EXPRESSION_IN_LIST; } return ChildRoleBase.NONE; } }