in intellij-plugin-verifier/verifier-core/src/main/java/com/jetbrains/pluginverifier/verifiers/CodeAnalysisUtil.kt [205:221]
fun evaluateAppendInstructions(instructions: List<AbstractInsnNode>): String? {
if (instructions.isEmpty()) {
return null
}
if (instructions.size == 1) {
val single = instructions.single()
return evaluateInstructionConstantString(single, analyzedMethod, frames)
}
if (instructions.size == 2) {
val first = instructions.first()
val second = instructions.last()
if (first is VarInsnNode && first.`var` == 0 && !analyzedMethod.isStatic) {
return evaluateInstructionConstantString(second, analyzedMethod, frames)
}
}
return null
}