class T { static class P { String n; } static boolean same(P a, P b) { return a.n == b.n || a.n != null && a.n.<caret>equals(b.n); } }