void () { final PsiFile file = myFixture.configureByFile(getTestName(true) + '.' + CommandLineFileType.EXTENSION); Assert.assertSame("Bad file type!", CommandLineFile.class, file.getClass()); final CommandLineFile commandLineFile = (CommandLineFile)file; commandLineFile.setCommands(CommandTestTools.createCommands()); myFixture.enableInspections(CommandLineInspection.class); myFixture.checkHighlighting(); }