String[] (String containingClass) { return bar(new Supplier<String[]>() { @Override public String[] get() { if (containingClass != null) { List<String> result = new <caret> foo(); //if (psiClass != null) return psiClass; } return null; } void foo() {} }); }