FernflowerDecompiler.java#L99 is the problem.
baseDecompiler.addSpace(new File(cn.name + ".class"), true);
Inner classes need to be added too.
Also, an API for getting inner methods' classnodes is probably a good idea, should be used in the other decompilers like Bytecode