// INTENTION_TEXT: Add @RequiresApi(LOLLIPOP) Annotation // INSPECTION_CLASS: com.android.tools.idea.lint.AndroidLintNewApiInspection // DEPENDENCY: RequiresApi.java -> android/support/annotation/RequiresApi.java import android.graphics.drawable.VectorDrawable import android.os.Build import android.support.annotation.RequiresApi class VectorDrawableProvider { val flag = false @RequiresApi(Build.VERSION_CODES.LOLLIPOP) fun getVectorDrawable(): VectorDrawable { return when (flag) { true -> VectorDrawable() else -> VectorDrawable() } } }