void (@NotNull PsiField field) { PsiModifierList modifierList = field.getModifierList(); if (modifierList == null) return; PsiAnnotation annotation = AddAnnotationPsiFix .addPhysicalAnnotationIfAbsent(CommonClassNames.JAVA_IO_SERIAL, PsiNameValuePair.EMPTY_ARRAY, modifierList); if (annotation != null) { JavaCodeStyleManager.getInstance(field.getProject()).shortenClassReferences(annotation); } }