GrModifierList (PsiElement parent) { GrModifierList modifierList; if (parent instanceof GrVariable) { modifierList = ((GrVariable)parent).getModifierList(); } else { modifierList = ((GrVariableDeclaration)parent).getModifierList(); } return modifierList; }