String (String fileText, String directive) { String string = findStringWithPrefixes(fileText, "// " + directive + ":"); if (string == null) { throw new IllegalStateException("'" + directive + "' directive is missed"); } return string; }