public static @Nullable PsiModifierList findModifierList(@NotNull PsiElement element) {
    if (element.getParent() instanceof PsiModifierList) {
      return (PsiModifierList)element.getParent();
    }

    return PsiTreeUtil.getParentOfType(FilterPositionUtil.searchNonSpaceNonCommentBack(element), PsiModifierList.class);
  }
public static @Nullable PsiModifierList findModifierList(@NotNull PsiElement element)