Shouldn't the comment be like this?

    // Generate relation getter for class with direct relation. Also generate getter in inverse if classes are distinct