@Override public void writeMethodDescriptor(MethodReference methodReference) throws IOException {
        if (methodReference.getDefiningClass().equals(classContext)) {
            writeShortMethodDescriptor(methodReference);
        } else {
            super.writeMethodDescriptor(methodReference);
        }
    }
@Test
    public void testWriteMethodDescriptor_withSpaces() throws IOException {
        BaksmaliWriter writer = new BaksmaliWriter(output);

        writer.writeMethodDescriptor(getMethodReferenceWithSpaces());

        Assert.assertEquals(
                "Ldefining/class/`with spaces`;->`methodName with spaces`(L`param with spaces 1`;L`param with spaces 2`;)" +
                        "Lreturn/type/`with spaces`;",
                output.toString());
    }