void (@NotNull PsiVariable variable, @NotNull PsiElement context) { @FixType int type = getQuickFixType(variable); if (type == UNKNOWN) return; switch (type) { case MAKE_FINAL -> PsiUtil.setModifierProperty(variable, PsiModifier.FINAL, true); case MAKE_ARRAY -> makeArray(variable, context); case COPY_TO_FINAL -> copyToFinal(variable, context); } }