int (@NotNull ASTNode child) { LOG.assertTrue(child.getTreeParent() == this); IElementType i = child.getElementType(); if (i == JavaTokenType.DOT) { return ChildRole.DOT; } if (i == JavaElementType.REFERENCE_PARAMETER_LIST) { return ChildRole.REFERENCE_PARAMETER_LIST; } if (i == JavaTokenType.IDENTIFIER || i == JavaTokenType.THIS_KEYWORD || i == JavaTokenType.SUPER_KEYWORD) { return ChildRole.REFERENCE_NAME; } if (ElementType.EXPRESSION_BIT_SET.contains(child.getElementType())) { return ChildRole.QUALIFIER; } return ChildRoleBase.NONE; }