Dostęp do stanu publicznej klasy statycznej z oddzielnego pliku klasy

Mam publiczną klasę statyczną w innej klasie publicznej w następujący sposób:

public class Foo<A> {
public static class Bar<A>{
    A firstBar;
    Bar(A setBar){
        this.firstBar=setBar;
    }
   }

public final Bar<A> instanceBar;

public Foo(A actualValue) {
    instanceBar = new Bar<A>(actualValue);
}

public Bar<A> getBar() {
    return instanceBar;
}

Moim celem jest dostępinstanceBarstan z osobnego pliku klasy bez metody get i bez zmiany widocznościfirstBar. Jak to osiągnąć?

Na przykład:not visible.

public class RetrieveFirstBar {
        public static void main(String[] args) {
             Foo z = new Foo(5l);
             Foo.Bar<Long> z2 = z.getBar();
             long k = z2.firstBar; //not visible!
        }

}

questionAnswers(1)

yourAnswerToTheQuestion