{"action":"created","comment":{"url":"https://api.github.com/repos/DemonWav/MinecraftDevIntelliJ/pulls/comments/73271762","id":73271762,"diff_hunk":"@@ -68,6 +60,34 @@ public void annotate(@NotNull PsiElement element, @NotNull AnnotationHolder hold\n             return;\n         }\n \n+        PsiCodeBlock methodCodeBlock = method.getBody();\n+        if (methodCodeBlock == null) {\n+            return;\n+        }\n+        PsiStatement[] methodBodyStatements = methodCodeBlock.getStatements();\n+        for (PsiStatement statement : methodBodyStatements) {\n+\n+            PsiAnnotation eventHandler = null;\n+\n+            for (PsiAnnotation psiAnnotation : method.getModifierList().getAnnotations()) {\n+                if (psiAnnotation.getQualifiedName().contains(\"EventHandler\")) {","path":"src/main/java/com/demonwav/mcdev/insight/ListenerEventAnnotator.java","position":31,"original_position":31,"commit_id":"52f287d8c6c1f0557e123a87ac170f2803360d8f","original_commit_id":"52f287d8c6c1f0557e123a87ac170f2803360d8f","user":{"login":"kashike","id":5474071,"avatar_url":"https://avatars.githubusercontent.com/u/5474071?v=3","gravatar_id":"","url":"https://api.github.com/users/kashike","html_url":"https://github.com/kashike","followers_url":"https://api.github.com/users/kashike/followers","following_url":"https://api.github.com/users/kashike/following{/other_user}","gists_url":"https://api.github.com/users/kashike/gists{/gist_id}","starred_url":"https://api.github.com/users/kashike/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kashike/subscriptions","organizations_url":"https://api.github.com/users/kashike/orgs","repos_url":"https://api.github.com/users/kashike/repos","events_url":"https://api.github.com/users/kashike/events{/privacy}","received_events_url":"https://api.github.com/users/kashike/received_events","type":"User","site_admin":false},"body":"Should ensure this matches against full class names instead.","created_at":"2016-08-03T02:25:41Z","updated_at":"2016-08-03T02:25:41Z","html_url":"https://github.com/DemonWav/MinecraftDevIntelliJ/pull/42#discussion_r73271762","pull_request_url":"https://api.github.com/repos/DemonWav/MinecraftDevIntelliJ/pulls/42","_links":{"self":{"href":"https://api.github.com/repos/DemonWav/MinecraftDevIntelliJ/pulls/comments/73271762"},"html":{"href":"https://github.com/DemonWav/MinecraftDevIntelliJ/pull/42#discussion_r73271762"},"pull_request":{"href":"https://api.github.com/repos/DemonWav/MinecraftDevIntelliJ/pulls/42"}}},"pull_request":{"url":"https://api.github.com/repos/DemonWav/MinecraftDevIntelliJ/pulls/42","id":79831376,"html_url":"https://github.com/DemonWav/MinecraftDevIntelliJ/pull/42","diff_url":"https://github.com/DemonWav/MinecraftDevIntelliJ/pull/42.diff","patch_url":"https://github.com/DemonWav/MinecraftDevIntelliJ/pull/42.patch","issue_url":"https://api.github.com/repos/DemonWav/MinecraftDevIntelliJ/issues/42","number":42,"state":"open","locked":false,"title":"Added inspection for redundant isCancelled() calls","user":{"login":"Redrield","id":8991639,"avatar_url":"https://avatars.githubusercontent.com/u/8991639?v=3","gravatar_id":"","url":"https://api.github.com/users/Redrield","html_url":"https://github.com/Redrield","followers_url":"https://api.github.com/users/Redrield/followers","following_url":"https://api.github.com/users/Redrield/following{/other_user}","gists_url":"https://api.github.com/users/Redrield/gists{/gist_id}","starred_url":"https://api.github.com/users/Redrield/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Redrield/subscriptions","organizations_url":"https://api.github.com/users/Redrield/orgs","repos_url":"https://api.github.com/users/Redrield/repos","events_url":"https://api.github.com/users/Redrield/events{/privacy}","received_events_url":"https://api.github.com/users/Redrield/received_events","type":"User","site_admin":false},"body":"Addresses #39 ","created_at":"2016-08-03T00:32:26Z","updated_at":"2016-08-03T02:25:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cae5fe65c14d760b7e47e4992367caaadc4e0f86","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/DemonWav/MinecraftDevIntelliJ/pulls/42/commits","review_comments_url":"https://api.github.com/repos/DemonWav/MinecraftDevIntelliJ/pulls/42/comments","review_comment_url":"https://api.github.com/repos/DemonWav/MinecraftDevIntelliJ/pulls/comments{/number}","comments_url":"https://api.github.com/repos/DemonWav/MinecraftDevIntelliJ/issues/42/comments","statuses_url":"https://api.github.com/repos/DemonWav/MinecraftDevIntelliJ/statuses/52f287d8c6c1f0557e123a87ac170f2803360d8f","head":{"label":"Redrield:IgnoreCancelledInspection","ref":"IgnoreCancelledInspection","sha":"52f287d8c6c1f0557e123a87ac170f2803360d8f","user":{"login":"Redrield","id":8991639,"avatar_url":"https://avatars.githubusercontent.com/u/8991639?v=3","gravatar_id":"","url":"https://api.github.com/users/Redrield","html_url":"https://github.com/Redrield","followers_url":"https://api.github.com/users/Redrield/followers","following_url":"https://api.github.com/users/Redrield/following{/other_user}","gists_url":"https://api.github.com/users/Redrield/gists{/gist_id}","starred_url":"https://api.github.com/users/Redrield/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Redrield/subscriptions","organizations_url":"https://api.github.com/users/Redrield/orgs","repos_url":"https://api.github.com/users/Redrield/repos","events_url":"https://api.github.com/users/Redrield/events{/privacy}","received_events_url":"https://api.github.com/users/Redrield/received_events","type":"User","site_admin":false},"repo":{"id":64575501,"name":"MinecraftDevIntelliJ","full_name":"Redrield/MinecraftDevIntelliJ","owner":{"login":"Redrield","id":8991639,"avatar_url":"https://avatars.githubusercontent.com/u/8991639?v=3","gravatar_id":"","url":"https://api.github.com/users/Redrield","html_url":"https://github.com/Redrield","followers_url":"https://api.github.com/users/Redrield/followers","following_url":"https://api.github.com/users/Redrield/following{/other_user}","gists_url":"https://api.github.com/users/Redrield/gists{/gist_id}","starred_url":"https://api.github.com/users/Redrield/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Redrield/subscriptions","organizations_url":"https://api.github.com/users/Redrield/orgs","repos_url":"https://api.github.com/users/Redrield/repos","events_url":"https://api.github.com/users/Redrield/events{/privacy}","received_events_url":"https://api.github.com/users/Redrield/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Redrield/MinecraftDevIntelliJ","description":"Plugin for IntelliJ IDEA that gives special support for Minecraft modding projects.","fork":true,"url":"https://api.github.com/repos/Redrield/MinecraftDevIntelliJ","forks_url":"https://api.github.com/repos/Redrield/MinecraftDevIntelliJ/forks","keys_url":"https://api.github.com/repos/Redrield/MinecraftDevIntelliJ/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Redrield/MinecraftDevIntelliJ/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Redrield/MinecraftDevIntelliJ/teams","hooks_url":"https://api.github.com/repos/Redrield/MinecraftDevIntelliJ/hooks","issue_events_url":"https://api.github.com/repos/Redrield/MinecraftDevIntelliJ/issues/events{/number}","events_url":"https://api.github.com/repos/Redrield/MinecraftDevIntelliJ/events","assignees_url":"https://api.github.com/repos/Redrield/MinecraftDevIntelliJ/assignees{/user}","branches_url":"https://api.github.com/repos/Redrield/MinecraftDevIntelliJ/branches{/branch}","tags_url":"https://api.github.com/repos/Redrield/MinecraftDevIntelliJ/tags","blobs_url":"https://api.github.com/repos/Redrield/MinecraftDevIntelliJ/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Redrield/MinecraftDevIntelliJ/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Redrield/MinecraftDevIntelliJ/git/refs{/sha}","trees_url":"https://api.github.com/repos/Redrield/MinecraftDevIntelliJ/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Redrield/MinecraftDevIntelliJ/statuses/{sha}","languages_url":"https://api.github.com/repos/Redrield/MinecraftDevIntelliJ/languages","stargazers_url":"https://api.github.com/repos/Redrield/MinecraftDevIntelliJ/stargazers","contributors_url":"https://api.github.com/repos/Redrield/MinecraftDevIntelliJ/contributors","subscribers_url":"https://api.github.com/repos/Redrield/MinecraftDevIntelliJ/subscribers","subscription_url":"https://api.github.com/repos/Redrield/MinecraftDevIntelliJ/subscription","commits_url":"https://api.github.com/repos/Redrield/MinecraftDevIntelliJ/commits{/sha}","git_commits_url":"https://api.github.com/repos/Redrield/MinecraftDevIntelliJ/git/commits{/sha}","comments_url":"https://api.github.com/repos/Redrield/MinecraftDevIntelliJ/comments{/number}","issue_comment_url":"https://api.github.com/repos/Redrield/MinecraftDevIntelliJ/issues/comments{/number}","contents_url":"https://api.github.com/repos/Redrield/MinecraftDevIntelliJ/contents/{+path}","compare_url":"https://api.github.com/repos/Redrield/MinecraftDevIntelliJ/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Redrield/MinecraftDevIntelliJ/merges","archive_url":"https://api.github.com/repos/Redrield/MinecraftDevIntelliJ/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Redrield/MinecraftDevIntelliJ/downloads","issues_url":"https://api.github.com/repos/Redrield/MinecraftDevIntelliJ/issues{/number}","pulls_url":"https://api.github.com/repos/Redrield/MinecraftDevIntelliJ/pulls{/number}","milestones_url":"https://api.github.com/repos/Redrield/MinecraftDevIntelliJ/milestones{/number}","notifications_url":"https://api.github.com/repos/Redrield/MinecraftDevIntelliJ/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Redrield/MinecraftDevIntelliJ/labels{/name}","releases_url":"https://api.github.com/repos/Redrield/MinecraftDevIntelliJ/releases{/id}","deployments_url":"https://api.github.com/repos/Redrield/MinecraftDevIntelliJ/deployments","created_at":"2016-07-31T03:40:58Z","updated_at":"2016-07-31T03:40:59Z","pushed_at":"2016-08-03T02:24:55Z","git_url":"git://github.com/Redrield/MinecraftDevIntelliJ.git","ssh_url":"git@github.com:Redrield/MinecraftDevIntelliJ.git","clone_url":"https://github.com/Redrield/MinecraftDevIntelliJ.git","svn_url":"https://github.com/Redrield/MinecraftDevIntelliJ","homepage":"","size":1107,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"DemonWav:master","ref":"master","sha":"fc6cfeb394be9875a03774792f704681578a84b2","user":{"login":"DemonWav","id":1332104,"avatar_url":"https://avatars.githubusercontent.com/u/1332104?v=3","gravatar_id":"","url":"https://api.github.com/users/DemonWav","html_url":"https://github.com/DemonWav","followers_url":"https://api.github.com/users/DemonWav/followers","following_url":"https://api.github.com/users/DemonWav/following{/other_user}","gists_url":"https://api.github.com/users/DemonWav/gists{/gist_id}","starred_url":"https://api.github.com/users/DemonWav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DemonWav/subscriptions","organizations_url":"https://api.github.com/users/DemonWav/orgs","repos_url":"https://api.github.com/users/DemonWav/repos","events_url":"https://api.github.com/users/DemonWav/events{/privacy}","received_events_url":"https://api.github.com/users/DemonWav/received_events","type":"User","site_admin":false},"repo":{"id":42327118,"name":"MinecraftDevIntelliJ","full_name":"DemonWav/MinecraftDevIntelliJ","owner":{"login":"DemonWav","id":1332104,"avatar_url":"https://avatars.githubusercontent.com/u/1332104?v=3","gravatar_id":"","url":"https://api.github.com/users/DemonWav","html_url":"https://github.com/DemonWav","followers_url":"https://api.github.com/users/DemonWav/followers","following_url":"https://api.github.com/users/DemonWav/following{/other_user}","gists_url":"https://api.github.com/users/DemonWav/gists{/gist_id}","starred_url":"https://api.github.com/users/DemonWav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DemonWav/subscriptions","organizations_url":"https://api.github.com/users/DemonWav/orgs","repos_url":"https://api.github.com/users/DemonWav/repos","events_url":"https://api.github.com/users/DemonWav/events{/privacy}","received_events_url":"https://api.github.com/users/DemonWav/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/DemonWav/MinecraftDevIntelliJ","description":"Plugin for IntelliJ IDEA that gives special support for Minecraft modding projects.","fork":false,"url":"https://api.github.com/repos/DemonWav/MinecraftDevIntelliJ","forks_url":"https://api.github.com/repos/DemonWav/MinecraftDevIntelliJ/forks","keys_url":"https://api.github.com/repos/DemonWav/MinecraftDevIntelliJ/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DemonWav/MinecraftDevIntelliJ/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DemonWav/MinecraftDevIntelliJ/teams","hooks_url":"https://api.github.com/repos/DemonWav/MinecraftDevIntelliJ/hooks","issue_events_url":"https://api.github.com/repos/DemonWav/MinecraftDevIntelliJ/issues/events{/number}","events_url":"https://api.github.com/repos/DemonWav/MinecraftDevIntelliJ/events","assignees_url":"https://api.github.com/repos/DemonWav/MinecraftDevIntelliJ/assignees{/user}","branches_url":"https://api.github.com/repos/DemonWav/MinecraftDevIntelliJ/branches{/branch}","tags_url":"https://api.github.com/repos/DemonWav/MinecraftDevIntelliJ/tags","blobs_url":"https://api.github.com/repos/DemonWav/MinecraftDevIntelliJ/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DemonWav/MinecraftDevIntelliJ/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DemonWav/MinecraftDevIntelliJ/git/refs{/sha}","trees_url":"https://api.github.com/repos/DemonWav/MinecraftDevIntelliJ/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DemonWav/MinecraftDevIntelliJ/statuses/{sha}","languages_url":"https://api.github.com/repos/DemonWav/MinecraftDevIntelliJ/languages","stargazers_url":"https://api.github.com/repos/DemonWav/MinecraftDevIntelliJ/stargazers","contributors_url":"https://api.github.com/repos/DemonWav/MinecraftDevIntelliJ/contributors","subscribers_url":"https://api.github.com/repos/DemonWav/MinecraftDevIntelliJ/subscribers","subscription_url":"https://api.github.com/repos/DemonWav/MinecraftDevIntelliJ/subscription","commits_url":"https://api.github.com/repos/DemonWav/MinecraftDevIntelliJ/commits{/sha}","git_commits_url":"https://api.github.com/repos/DemonWav/MinecraftDevIntelliJ/git/commits{/sha}","comments_url":"https://api.github.com/repos/DemonWav/MinecraftDevIntelliJ/comments{/number}","issue_comment_url":"https://api.github.com/repos/DemonWav/MinecraftDevIntelliJ/issues/comments{/number}","contents_url":"https://api.github.com/repos/DemonWav/MinecraftDevIntelliJ/contents/{+path}","compare_url":"https://api.github.com/repos/DemonWav/MinecraftDevIntelliJ/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DemonWav/MinecraftDevIntelliJ/merges","archive_url":"https://api.github.com/repos/DemonWav/MinecraftDevIntelliJ/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DemonWav/MinecraftDevIntelliJ/downloads","issues_url":"https://api.github.com/repos/DemonWav/MinecraftDevIntelliJ/issues{/number}","pulls_url":"https://api.github.com/repos/DemonWav/MinecraftDevIntelliJ/pulls{/number}","milestones_url":"https://api.github.com/repos/DemonWav/MinecraftDevIntelliJ/milestones{/number}","notifications_url":"https://api.github.com/repos/DemonWav/MinecraftDevIntelliJ/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DemonWav/MinecraftDevIntelliJ/labels{/name}","releases_url":"https://api.github.com/repos/DemonWav/MinecraftDevIntelliJ/releases{/id}","deployments_url":"https://api.github.com/repos/DemonWav/MinecraftDevIntelliJ/deployments","created_at":"2015-09-11T19:04:44Z","updated_at":"2016-07-31T22:28:53Z","pushed_at":"2016-08-03T02:24:55Z","git_url":"git://github.com/DemonWav/MinecraftDevIntelliJ.git","ssh_url":"git@github.com:DemonWav/MinecraftDevIntelliJ.git","clone_url":"https://github.com/DemonWav/MinecraftDevIntelliJ.git","svn_url":"https://github.com/DemonWav/MinecraftDevIntelliJ","homepage":"","size":1152,"stargazers_count":54,"watchers_count":54,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":9,"forks":10,"open_issues":9,"watchers":54,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/DemonWav/MinecraftDevIntelliJ/pulls/42"},"html":{"href":"https://github.com/DemonWav/MinecraftDevIntelliJ/pull/42"},"issue":{"href":"https://api.github.com/repos/DemonWav/MinecraftDevIntelliJ/issues/42"},"comments":{"href":"https://api.github.com/repos/DemonWav/MinecraftDevIntelliJ/issues/42/comments"},"review_comments":{"href":"https://api.github.com/repos/DemonWav/MinecraftDevIntelliJ/pulls/42/comments"},"review_comment":{"href":"https://api.github.com/repos/DemonWav/MinecraftDevIntelliJ/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/DemonWav/MinecraftDevIntelliJ/pulls/42/commits"},"statuses":{"href":"https://api.github.com/repos/DemonWav/MinecraftDevIntelliJ/statuses/52f287d8c6c1f0557e123a87ac170f2803360d8f"}}}}
{"actor":{"display_login":"kashike"}}