int (@NotNull ASTNode child) { LOG.assertTrue(child.getTreeParent() == this); IElementType i = child.getElementType(); if (i == PARAMETER) { return ChildRole.PARAMETER; } if (i == CODE_BLOCK) { return ChildRole.CATCH_BLOCK; } if (i == CATCH_KEYWORD) { return ChildRole.CATCH_KEYWORD; } if (i == LPARENTH) { return ChildRole.CATCH_BLOCK_PARAMETER_LPARENTH; } if (i == RPARENTH) { return ChildRole.CATCH_BLOCK_PARAMETER_RPARENTH; } return ChildRoleBase.NONE; }