LocalInspectionTool[] () { String configFileText = getConfigFileText(); if (configFileText == null) return DEFAULT_TOOLS; List<String> toolsStrings = InTextDirectivesUtils.findListWithPrefixes(configFileText, "TOOL:"); return CollectionsKt .map(toolsStrings, toolString -> mapStringToTool(toolString)) .toArray(LocalInspectionTool.EMPTY_ARRAY); }