boolean (@NotNull LighterAST tree, @Nullable LighterASTNode modifierListOwner, @NotNull IElementType modifierKeyword) { LighterASTNode modifierList = LightTreeUtil.firstChildOfType(tree, modifierListOwner, MODIFIER_LIST); return LightTreeUtil.firstChildOfType(tree, modifierList, modifierKeyword) != null; }