Capitalization (@NotNull PsiModifierListOwner owner) { NlsInfo info = forModifierListOwner(owner); if (info instanceof Localized) { return ((Localized)info).getCapitalization(); } return Capitalization.NotSpecified; }