PsiModifierList (@NotNull PsiElement element) { if(element.getParent() instanceof PsiModifierList) { return (PsiModifierList)element.getParent(); } return PsiTreeUtil.getParentOfType(FilterPositionUtil.searchNonSpaceNonCommentBack(element), PsiModifierList.class); }