boolean (Project project, ExpectedTypeInfo[] expectedTypes) { if (Registry.is("ide.create.field.enable.shortening")) return false; return ExpectedTypesProvider.processExpectedTypes(expectedTypes, new PsiTypeVisitor<>() { @Override public PsiType visitType(@NotNull PsiType type) { return type; } }, project).length > 1; }