{"action":"opened","issue":{"url":"https://api.github.com/repos/vpedak/droidtestrec/issues/5","labels_url":"https://api.github.com/repos/vpedak/droidtestrec/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/vpedak/droidtestrec/issues/5/comments","events_url":"https://api.github.com/repos/vpedak/droidtestrec/issues/5/events","html_url":"https://github.com/vpedak/droidtestrec/issues/5","id":118201684,"number":5,"title":"ClassCastException with groovy class","user":{"login":"Mistic92","id":2607098,"avatar_url":"https://avatars.githubusercontent.com/u/2607098?v=3","gravatar_id":"","url":"https://api.github.com/users/Mistic92","html_url":"https://github.com/Mistic92","followers_url":"https://api.github.com/users/Mistic92/followers","following_url":"https://api.github.com/users/Mistic92/following{/other_user}","gists_url":"https://api.github.com/users/Mistic92/gists{/gist_id}","starred_url":"https://api.github.com/users/Mistic92/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mistic92/subscriptions","organizations_url":"https://api.github.com/users/Mistic92/orgs","repos_url":"https://api.github.com/users/Mistic92/repos","events_url":"https://api.github.com/users/Mistic92/events{/privacy}","received_events_url":"https://api.github.com/users/Mistic92/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-21T14:59:11Z","updated_at":"2015-11-21T14:59:11Z","closed_at":null,"body":"It happens when I'm trying to record groovy class\r\n```\r\n2015-11-20 21:59:24,865 [ 428232]  ERROR - llij.ide.plugins.PluginManager - org.jetbrains.plugins.groovy.lang.psi.impl.GroovyFileImpl cannot be cast to com.intellij.psi.PsiJavaFile \r\njava.lang.ClassCastException: org.jetbrains.plugins.groovy.lang.psi.impl.GroovyFileImpl cannot be cast to com.intellij.psi.PsiJavaFile\r\n\tat com.vpedak.testsrecorder.plugin.actions.ToolsTestsRecorderAction.record(ToolsTestsRecorderAction.java:290)\r\n\tat com.vpedak.testsrecorder.plugin.actions.ToolsTestsRecorderAction.access$100(ToolsTestsRecorderAction.java:48)\r\n\tat com.vpedak.testsrecorder.plugin.actions.ToolsTestsRecorderAction$1.actionPerformed(ToolsTestsRecorderAction.java:104)\r\n\tat javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)\r\n\tat javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2346)\r\n\tat javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)\r\n\tat javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)\r\n\tat javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)\r\n\tat java.awt.Component.processMouseEvent(Component.java:6525)\r\n\tat javax.swing.JComponent.processMouseEvent(JComponent.java:3324)\r\n\tat java.awt.Component.processEvent(Component.java:6290)\r\n\tat java.awt.Container.processEvent(Container.java:2234)\r\n\tat java.awt.Component.dispatchEventImpl(Component.java:4881)\r\n\tat java.awt.Container.dispatchEventImpl(Container.java:2292)\r\n\tat java.awt.Component.dispatchEvent(Component.java:4703)\r\n\tat java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4898)\r\n\tat java.awt.LightweightDispatcher.processMouseEvent(Container.java:4533)\r\n\tat java.awt.LightweightDispatcher.dispatchEvent(Container.java:4462)\r\n\tat java.awt.Container.dispatchEventImpl(Container.java:2278)\r\n\tat java.awt.Window.dispatchEventImpl(Window.java:2750)\r\n\tat java.awt.Component.dispatchEvent(Component.java:4703)\r\n\tat java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)\r\n\tat java.awt.EventQueue.access$500(EventQueue.java:97)\r\n\tat java.awt.EventQueue$3.run(EventQueue.java:709)\r\n\tat java.awt.EventQueue$3.run(EventQueue.java:703)\r\n\tat java.security.AccessController.doPrivileged(Native Method)\r\n\tat java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)\r\n\tat java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)\r\n\tat java.awt.EventQueue$4.run(EventQueue.java:731)\r\n\tat java.awt.EventQueue$4.run(EventQueue.java:729)\r\n\tat java.security.AccessController.doPrivileged(Native Method)\r\n\tat java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)\r\n\tat java.awt.EventQueue.dispatchEvent(EventQueue.java:728)\r\n\tat com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:734)\r\n\tat com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:565)\r\n\tat com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:382)\r\n\tat java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)\r\n\tat java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)\r\n\tat java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)\r\n\tat java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)\r\n\tat java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)\r\n\tat java.awt.EventDispatchThread.run(EventDispatchThread.java:82)\r\n2015-11-20 21:59:24,867 [ 428234]  ERROR - llij.ide.plugins.PluginManager - Android Studio 1.5  Build #AI-141.2422023 \r\n2015-11-20 21:59:24,867 [ 428234]  ERROR - llij.ide.plugins.PluginManager - JDK: 1.8.0_60-ea \r\n2015-11-20 21:59:24,867 [ 428234]  ERROR - llij.ide.plugins.PluginManager - VM: Java HotSpot(TM) 64-Bit Server VM \r\n```"}}