int (@NotNull ASTNode child) { LOG.assertTrue(child.getTreeParent() == this); IElementType i = child.getElementType(); if (i == TYPE) { return ChildRole.TYPE; } else if (i == INSTANCEOF_KEYWORD) { return ChildRole.INSTANCEOF_KEYWORD; } if (EXPRESSION_BIT_SET.contains(child.getElementType())) { return ChildRole.OPERAND; } return ChildRoleBase.NONE; }