void (@NotNull GrModifierList modifierList) { final PsiElement parent = modifierList.getParent(); if (parent instanceof GrMethod) { checkMethodDefinitionModifiers(myHolder, (GrMethod)parent); } else if (parent instanceof GrVariableDeclaration declaration) { if (isFieldDeclaration(declaration)) { checkFieldModifiers(myHolder, declaration); } else { checkVariableModifiers(myHolder, declaration); } } else if (parent instanceof GrClassInitializer) { checkClassInitializerModifiers(myHolder, modifierList); } }