docs: @Override
  	public List<INode> getFileHeaderNodes(Resource resource) {
  		if (resource instanceof XtextResource) {
  			IParseResult parseResult = ((XtextResource) resource).getParseResult();
  			if(parseResult != null) {
  				for(ILeafNode leafNode: parseResult.getRootNode().getLeafNodes()) {
  					EObject grammarElement = leafNode.getGrammarElement();
  					if(grammarElement instanceof TerminalRule) {
  						String terminalRuleName = ((TerminalRule) grammarElement).getName();
  						if (ruleName.equalsIgnoreCase(terminalRuleName)) {
  							return singletonList((INode) leafNode);
  						} else if(wsRuleName.equals(terminalRuleName)) {
  							continue;
  						}
  					}
  					break;
  				}
  			}
  		}
  		return Collections.emptyList();
  	}