void (@NotNull PsiResourceList resourceList) { for (PsiResourceListElement resource : resourceList) { if (resource instanceof PsiResourceVariable variable) { PsiExpression initializer = variable.getInitializer(); if (initializer != null) { initializeVariable(variable, initializer); } } else if (resource instanceof PsiResourceExpression expression) { expression.getExpression().accept(this); addInstruction(new PopInstruction()); } } }