java.lang.ClassCastException: com.sun.tools.javac.code.Type$JCNoType cannot be cast to javax.lang.model.type.DeclaredType at org.netbeans.modules.java.hints.introduce.Flow$VisitorImpl.recordResumeOnExceptionHandler(Flow.java:1535) at org.netbeans.modules.java.hints.introduce.Flow$VisitorImpl.recordResumeOnExceptionHandler(Flow.java:1497) at org.netbeans.modules.java.hints.introduce.Flow$VisitorImpl.visitMethodInvocation(Flow.java:1327) at org.netbeans.modules.java.hints.introduce.Flow$VisitorImpl.visitMethodInvocation(Flow.java:381) at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1477) at com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:68) at org.netbeans.api.java.source.support.CancellableTreePathScanner.scan(CancellableTreePathScanner.java:94) at org.netbeans.modules.java.hints.introduce.Flow$VisitorImpl.scan(Flow.java:476) at org.netbeans.modules.java.hints.introduce.Flow$VisitorImpl.scan(Flow.java:381) at com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:81) at com.sun.source.util.TreeScanner.visitVariable(TreeScanner.java:153) at org.netbeans.modules.java.hints.introduce.Flow$VisitorImpl.visitVariable(Flow.java:628) at org.netbeans.modules.java.hints.introduce.Flow$VisitorImpl.visitVariable(Flow.java:381) at com.sun.tools.javac.tree.JCTree$JCVariableDecl.accept(JCTree.java:864) at com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:68) at org.netbeans.api.java.source.support.CancellableTreePathScanner.scan(CancellableTreePathScanner.java:94) at org.netbeans.modules.java.hints.introduce.Flow$VisitorImpl.scan(Flow.java:476) at org.netbeans.modules.java.hints.introduce.Flow$VisitorImpl.visitBlock(Flow.java:1489) at org.netbeans.modules.java.hints.introduce.Flow$VisitorImpl.visitBlock(Flow.java:381) at com.sun.tools.javac.tree.JCTree$JCBlock.accept(JCTree.java:918) at com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:68) at org.netbeans.api.java.source.support.CancellableTreePathScanner.scan(CancellableTreePathScanner.java:94) at org.netbeans.modules.java.hints.introduce.Flow$VisitorImpl.scan(Flow.java:476) at org.netbeans.modules.java.hints.introduce.Flow$VisitorImpl.scan(Flow.java:381) at com.sun.source.util.TreeScanner.scan(TreeScanner.java:91) at org.netbeans.api.java.source.support.CancellableTreePathScanner.scan(CancellableTreePathScanner.java:103) at org.netbeans.modules.java.hints.introduce.Flow$VisitorImpl.generalizedIf(Flow.java:752) at org.netbeans.modules.java.hints.introduce.Flow$VisitorImpl.visitIf(Flow.java:722) at org.netbeans.modules.java.hints.introduce.Flow$VisitorImpl.visitIf(Flow.java:381) at com.sun.tools.javac.tree.JCTree$JCIf.accept(JCTree.java:1277) at com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:68) at org.netbeans.api.java.source.support.CancellableTreePathScanner.scan(CancellableTreePathScanner.java:94) at org.netbeans.modules.java.hints.introduce.Flow$VisitorImpl.scan(Flow.java:476) at org.netbeans.modules.java.hints.introduce.Flow$VisitorImpl.scan(Flow.java:381) at com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:81) at com.sun.source.util.TreeScanner.scan(TreeScanner.java:91) at org.netbeans.api.java.source.support.CancellableTreePathScanner.scan(CancellableTreePathScanner.java:103) at org.netbeans.modules.java.hints.introduce.Flow$VisitorImpl.generalizedIf(Flow.java:752) at org.netbeans.modules.java.hints.introduce.Flow$VisitorImpl.visitBlock(Flow.java:1484) at org.netbeans.modules.java.hints.introduce.Flow$VisitorImpl.visitBlock(Flow.java:381) at com.sun.tools.javac.tree.JCTree$JCBlock.accept(JCTree.java:918) at com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:68) at org.netbeans.api.java.source.support.CancellableTreePathScanner.scan(CancellableTreePathScanner.java:94) at org.netbeans.modules.java.hints.introduce.Flow$VisitorImpl.scan(Flow.java:476) at org.netbeans.modules.java.hints.introduce.Flow$VisitorImpl.visitMethod(Flow.java:923) at org.netbeans.modules.java.hints.introduce.Flow$VisitorImpl.visitMethod(Flow.java:381) at com.sun.tools.javac.tree.JCTree$JCMethodDecl.accept(JCTree.java:800) at com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:68) at org.netbeans.api.java.source.support.CancellableTreePathScanner.scan(CancellableTreePathScanner.java:94) at org.netbeans.modules.java.hints.introduce.Flow$VisitorImpl.scan(Flow.java:476) at org.netbeans.modules.java.hints.introduce.Flow$VisitorImpl.scan(Flow.java:381) at com.sun.source.util.TreeScanner.scan(TreeScanner.java:91) at org.netbeans.api.java.source.support.CancellableTreePathScanner.scan(CancellableTreePathScanner.java:103) at org.netbeans.modules.java.hints.introduce.Flow$VisitorImpl.visitClass(Flow.java:1469) at org.netbeans.modules.java.hints.introduce.Flow$VisitorImpl.visitClass(Flow.java:381) at com.sun.tools.javac.tree.JCTree$JCClassDecl.accept(JCTree.java:719) at com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:68) at org.netbeans.api.java.source.support.CancellableTreePathScanner.scan(CancellableTreePathScanner.java:94) at org.netbeans.modules.java.hints.introduce.Flow$VisitorImpl.scan(Flow.java:476) at org.netbeans.modules.java.hints.introduce.Flow$VisitorImpl.scan(Flow.java:381) at com.sun.source.util.TreeScanner.scan(TreeScanner.java:91) at org.netbeans.api.java.source.support.CancellableTreePathScanner.scan(CancellableTreePathScanner.java:103) at com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:99) at com.sun.source.util.TreeScanner.visitCompilationUnit(TreeScanner.java:120) at org.netbeans.modules.java.hints.introduce.Flow$VisitorImpl.visitCompilationUnit(Flow.java:1655) at org.netbeans.modules.java.hints.introduce.Flow$VisitorImpl.visitCompilationUnit(Flow.java:381) at com.sun.tools.javac.tree.JCTree$JCCompilationUnit.accept(JCTree.java:551) at com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:50) at org.netbeans.modules.java.hints.introduce.Flow.assignmentsForUse(Flow.java:175) at org.netbeans.modules.java.hints.introduce.Flow.assignmentsForUse(Flow.java:162) at org.netbeans.modules.java.hints.introduce.Flow.assignmentsForUse(Flow.java:148) at org.netbeans.modules.java.hints.bugs.UnusedAssignmentOrBranch.computeUsedAssignments(UnusedAssignmentOrBranch.java:89) at org.netbeans.modules.java.hints.bugs.UnusedAssignmentOrBranch.unusedAssignment(UnusedAssignmentOrBranch.java:153) at sun.reflect.GeneratedMethodAccessor137.invoke(GeneratedMethodAccessor137.java:0) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.netbeans.modules.java.hints.providers.code.CodeHintProviderImpl$WorkerImpl.createErrors(CodeHintProviderImpl.java:336) at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.runHint(HintsInvoker.java:790) at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.doComputeHints(HintsInvoker.java:567) at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.computeHintsImpl(HintsInvoker.java:294) at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.computeHints(HintsInvoker.java:239) at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.computeHints(HintsInvoker.java:209) at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.computeHints(HintsInvoker.java:182) at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.computeHints(HintsInvoker.java:149) at org.netbeans.modules.java.hints.spiimpl.hints.HintsTask.run(HintsTask.java:114) at org.netbeans.modules.java.hints.spiimpl.hints.HintsTask.run(HintsTask.java:83) at org.netbeans.modules.java.source.JavaSourceAccessor$CancelableTaskWrapper.run(JavaSourceAccessor.java:298) at org.netbeans.modules.parsing.impl.TaskProcessor.callParserResultTask(TaskProcessor.java:568) at org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob.run(TaskProcessor.java:744) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1423) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)