String (MemberInfo memberInfo) { if (checkForProblems(memberInfo) == OK) return null; if (!(memberInfo.getMember() instanceof PsiField field)) return JavaBundle.message("generate.equals.hashcode.internal.error"); if (!JavaVersionService.getInstance().isAtLeast(field, JavaSdkVersion.JDK_1_5)) { final PsiType type = field.getType(); if (PsiAdapter.isNestedArray(type)) { return JavaBundle.message("generate.equals.warning.equals.for.nested.arrays.not.supported"); } if (GenerateEqualsHelper.isArrayOfObjects(type)) { return JavaBundle.message("generate.equals.warning.generated.equals.could.be.incorrect"); } } return null; }