void () { myFixture.addClass(""" package org.jetbrains.annotations; import java.lang.annotation.*; @Target(ElementType.TYPE_USE) public @interface Range { long from(); long to(); }"""); myFixture.enableInspections(new UnsatisfiedRangeInspection()); myFixture.configureByFile(getTestName(false)+".java"); myFixture.testHighlighting(true, false, false); }