PsiElement (String name) { final int myPriority = PRIORITY.getInt(name); PsiElement anchor = null; for (PsiElement modifier : getModifiers()) { final int otherPriority = PRIORITY.getInt(modifier.getText()); if (otherPriority <= myPriority) { anchor = modifier; } else if (anchor != null) { break; } } return anchor; }