Original exception:
java.lang.NullPointerException
at org.jetbrains.plugins.ruby.ruby.codeInsight.types.TypeInferenceHelper.inferCallTypeBySymbol(TypeInferenceHelper.java:143)
at org.jetbrains.plugins.ruby.ruby.codeInsight.types.TypeInferenceHelper.inferTypeOfReference(TypeInferenceHelper.java:135)
at org.jetbrains.plugins.ruby.ruby.codeInsight.types.TypeInferenceHelper.inferCallType(TypeInferenceHelper.java:108)
at org.jetbrains.plugins.ruby.ruby.lang.psi.impl.methodCall.RCallBase.getType(RCallBase.java:317)
at org.jetbrains.plugins.ruby.ruby.lang.psi.dataFlow.types.TypeDfaInstance.fun(TypeDfaInstance.java:116)
at org.jetbrains.plugins.ruby.ruby.lang.psi.dataFlow.types.TypeDfaInstance.fun(TypeDfaInstance.java:49)
at org.jetbrains.plugins.ruby.ruby.lang.psi.dataFlow.DFAEngine.performDFA(DFAEngine.java:88)
at org.jetbrains.plugins.ruby.ruby.codeInsight.types.TypeInferenceHelper.inferLocalVariablesTypes(TypeInferenceHelper.java:87)
at org.jetbrains.plugins.ruby.ruby.codeInsight.types.TypeInferenceHelper.inferLocalVariableType(TypeInferenceHelper.java:73)
at org.jetbrains.plugins.ruby.ruby.codeInsight.resolve.scope.impl.ScopeVariableImpl.getType(ScopeVariableImpl.java:81)
at org.jetbrains.plugins.ruby.ruby.lang.psi.impl.variables.RIdentifierImpl.getType(RIdentifierImpl.java:128)
at org.jetbrains.plugins.ruby.ruby.codeInsight.references.RQualifiedReference.getRefObjectType(RQualifiedReference.java:298)
at org.jetbrains.plugins.ruby.ruby.codeInsight.references.RQualifiedReference.multiResolveToSymbols(RQualifiedReference.java:224)
at org.jetbrains.plugins.ruby.ruby.codeInsight.resolve.ResolveUtil.resolveToSymbols(ResolveUtil.java:128)
at sun.reflect.GeneratedMethodAccessor62.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jruby.javasupport.JavaMethod.invokeWithExceptionHandling(JavaMethod.java:250)
at org.jruby.javasupport.JavaMethod.invoke_static(JavaMethod.java:230)
at org.jruby.javasupport.JavaClass$StaticMethodInvoker.execute(JavaClass.java:361)
at org.jruby.internal.runtime.methods.SimpleCallbackMethod.call(SimpleCallbackMethod.java:67)
at org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:241)
at org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:150)
at org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:381)
at ruby.jit.ruby.Users.nikitabelenkiy.Library.Application_20_Support.IntelliJIDEA70.ruby.rb.actions.qualified_name_to_include_class.isAvailable979026_13513104.__file__(/Users/nikitabelenkiy/Library/Application Support/IntelliJIDEA70/ruby/rb/actions/qualified_name_to_include_class.rb:51)
at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:341)
at org.jruby.runtime.CallSite$InlineCachingCallSite.cacheAndCall(CallSite.java:195)
at org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:486)
at ruby.jit.ruby.Users.nikitabelenkiy.Library.Application_20_Support.IntelliJIDEA70.ruby.rb.util.reloadable_intention_action.isAvailable6304775_13513104.__file__(/Users/nikitabelenkiy/Library/Application Support/IntelliJIDEA70/ruby/rb/actions/../util/reloadable_intention_action.rb:28)
at ruby.jit.ruby.Users.nikitabelenkiy.Library.Application_20_Support.IntelliJIDEA70.ruby.rb.util.reloadable_intention_action.isAvailable6304775_13513104.__file__(/Users/nikitabelenkiy/Library/Application Support/IntelliJIDEA70/ruby/rb/actions/../util/reloadable_intention_action.rb)
at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:138)
at org.jruby.RubyObject.send(RubyObject.java:2050)
at org.jruby.RubyObjectInvoker$send_method_0_0.call(Unknown Source)
at org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:134)
at org.jruby.runtime.CallSite$InlineCachingCallSite.cacheAndCall(CallSite.java:111)
at org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:282)
at org.jruby.ast.CallNode.interpret(CallNode.java:163)
at org.jruby.ast.CallOneArgNode.interpret(CallOneArgNode.java:57)
at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:101)
at org.jruby.ast.BlockNode.interpret(BlockNode.java:67)
at org.jruby.runtime.InterpretedBlock.evalBlockBody(InterpretedBlock.java:203)
at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:191)
at org.jruby.runtime.BlockBody.call(BlockBody.java:64)
at org.jruby.runtime.Block.call(Block.java:96)
at org.jruby.RubyProc.call(RubyProc.java:202)
at org.jruby.RubyProc.call(RubyProc.java:189)
at org.jruby.javasupport.Java$5.invoke(Java.java:1165)
at $Proxy36.isAvailable(Unknown Source)
at org.jetbrains.plugins.ruby.ruby.actions.intention.RubyIntentionActionClassLoaderHack.isAvailable(RubyIntentionActionClassLoaderHack.java:50)
at com.intellij.codeInsight.daemon.impl.ShowIntentionsPass.getActionsToShow(ShowIntentionsPass.java:165)
at com.intellij.codeInsight.daemon.impl.ShowIntentionsPass.a(ShowIntentionsPass.java:11)
at com.intellij.codeInsight.daemon.impl.ShowIntentionsPass.doApplyInformationToEditor(ShowIntentionsPass.java:182)
at com.intellij.codeHighlighting.TextEditorHighlightingPass.applyInformationToEditor(TextEditorHighlightingPass.java:65)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$3.run(PassExecutorService.java:21)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:16)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at com.intellij.ide.IdeEventQueue.c(IdeEventQueue.java:146)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:63)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:87)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)