protected bool IsEventHandler(IEnumerable<VariableDeclarationNode> formalParameters) { if (formalParameters == null) { return false; } foreach (VariableDeclarationNode vdn in formalParameters) { WordNode last = vdn.Type.ParsedName.LastWord(); if (last != null && last.Text != null && last.Text.ToLower() == "event") { //TODO: is this sufficient for non-Java languages? //for C#, should match against EventArgs return true; } } return false; }