void () { myFixture.configureByText("Test.java", """ import java.util.*; class Test { private final Collection<String> filters = new ArrayList<>(); private Collection<String> filters2 = new ArrayList<>(); } """); PsiClass aClass = ((PsiJavaFile)myFixture.getFile()).getClasses()[0]; GenerateEqualsWizard wizard = new GenerateEqualsWizard(getProject(), aClass, true, true); try { Set<Map.Entry<PsiMember, MemberInfo>> entries = wizard.myFieldsToNonNull.entrySet(); assertEquals(2, entries.size()); for (Map.Entry<PsiMember, MemberInfo> entry : entries) { PsiMember member = entry.getKey(); MemberInfo info = entry.getValue(); assertEquals(member.getName().equals("filters"), info.isChecked()); } } finally { wizard.close(0, true); } }