LocalQuickFix (Object... infos) { final PsiArrayType type = (PsiArrayType)infos[0]; final boolean deepHashCode = type.getComponentType() instanceof PsiArrayType; return switch ((Kind)infos[1]) { case ARRAY_HASH_CODE -> new ArrayHashCodeFix(deepHashCode); case OBJECTS_HASH -> new ObjectsHashFix(deepHashCode); }; }