PsiElement (@NotNull PsiModifierList modifierList, String modifier) { PsiElement[] children = modifierList.getChildren(); for (PsiElement child : children) { if (child.getText().equals(modifier)) return child; } return null; }