correct checking for inner classes as receiver for outer class methods