int (@NotNull ASTNode child) { LOG.assertTrue(child.getTreeParent() == this); IElementType i = child.getElementType(); if (i == JavaTokenType.PACKAGE_KEYWORD) { return ChildRole.PACKAGE_KEYWORD; } else if (i == JavaElementType.JAVA_CODE_REFERENCE) { return ChildRole.PACKAGE_REFERENCE; } else if (i == JavaTokenType.SEMICOLON) { return ChildRole.CLOSING_SEMICOLON; } else if (i == JavaElementType.MODIFIER_LIST) { return ChildRole.MODIFIER_LIST; } else { return ChildRoleBase.NONE; } }