int (@NotNull ASTNode child) { LOG.assertTrue(child.getTreeParent() == this); IElementType i = child.getElementType(); if (i == JavaElementType.PACKAGE_STATEMENT) { return ChildRole.PACKAGE_STATEMENT; } else if (i == JavaElementType.IMPORT_LIST) { return ChildRole.IMPORT_LIST; } else if (i == JavaElementType.CLASS) { return ChildRole.CLASS; } else { return ChildRoleBase.NONE; } }