SyntaxNodeDescriptor (int ruleId) { SyntaxNodeDescriptor syntaxNodeDescriptor = myRepository != null ? myRepository.get(ruleId) : null; if (syntaxNodeDescriptor == null && myParentNode != null) { return myParentNode.findInRepository(ruleId); } if (syntaxNodeDescriptor == null) { LOG.warn("Can't find repository " + ruleId); return EMPTY_NODE; } return syntaxNodeDescriptor; }