int (@NotNull ASTNode child) { LOG.assertTrue(child.getTreeParent() == this); IElementType i = child.getElementType(); if (i == JavaTokenType.CASE_KEYWORD) return ChildRole.CASE_KEYWORD; if (i == JavaTokenType.DEFAULT_KEYWORD) return ChildRole.DEFAULT_KEYWORD; if (i == JavaTokenType.COLON) return ChildRole.COLON; if (ElementType.EXPRESSION_BIT_SET.contains(child.getElementType())) return ChildRole.CASE_EXPRESSION; return ChildRoleBase.NONE; }