int (@NotNull ASTNode child) { LOG.assertTrue(child.getTreeParent() == this); IElementType i = child.getElementType(); if (i == SYNCHRONIZED_KEYWORD) { return ChildRole.SYNCHRONIZED_KEYWORD; } else if (i == LPARENTH) { return ChildRole.LPARENTH; } else if (i == RPARENTH) { return ChildRole.RPARENTH; } else if (i == CODE_BLOCK) { return ChildRole.BLOCK; } else { if (EXPRESSION_BIT_SET.contains(child.getElementType())) { return ChildRole.LOCK; } return ChildRoleBase.NONE; } }