int (@NotNull ASTNode child) { LOG.assertTrue(child.getTreeParent() == this); IElementType i = child.getElementType(); if (i == JavaDocElementType.DOC_COMMENT) { return getChildRole(child, ChildRole.DOC_COMMENT); } else if (i == MODIFIER_LIST) { return ChildRole.MODIFIER_LIST; } else if (i == TYPE_PARAMETER_LIST) { return ChildRole.TYPE_PARAMETER_LIST; } else if (i == CODE_BLOCK) { return ChildRole.METHOD_BODY; } else if (i == PARAMETER_LIST) { return ChildRole.PARAMETER_LIST; } else if (i == THROWS_LIST) { return ChildRole.THROWS_LIST; } else if (i == TYPE) { return getChildRole(child, ChildRole.TYPE); } else if (i == IDENTIFIER) { return getChildRole(child, ChildRole.NAME); } else if (i == SEMICOLON) { return getChildRole(child, ChildRole.CLOSING_SEMICOLON); } else if (i == DEFAULT_KEYWORD) { return ChildRole.DEFAULT_KEYWORD; } else { return ChildRoleBase.NONE; } }