int (@NotNull ASTNode child) { LOG.assertTrue(child.getTreeParent() == this); if (ElementType.EXPRESSION_BIT_SET.contains(child.getElementType())) { if (child == getFirstChildNode()) return ChildRole.LOPERAND; if (child == getLastChildNode()) return ChildRole.ROPERAND; return ChildRoleBase.NONE; } if (OUR_OPERATIONS_BIT_SET.contains(child.getElementType())) { return ChildRole.OPERATION_SIGN; } return ChildRoleBase.NONE; }