void (@NotNull final String commandText, @NotNull final String expectedArgumentText) { final CommandLineFile file = CommandTestTools.createFileByText(myFixture, commandText); final ValidationResult validationResult = file.getValidationResult(); assert validationResult != null : "validation failed"; final Pair<Boolean, Argument> arg = validationResult.getNextArg(); Assert.assertNotNull("No argument returned, but should", arg); Assert.assertTrue("Required argument is not marked as required", arg.first); Assert.assertEquals("Wrong argument text", expectedArgumentText, arg.second.getHelp().getHelpString()); }