String (@NotNull SettingsType settingsType) { String name = "/samples/" + settingsType.name() + ".txt"; try { try (Reader reader = new InputStreamReader(GroovyLanguageCodeStyleSettingsProvider.class.getResourceAsStream(name), UTF_8)) { return readText(reader); } } catch (IOException ignored) { } return ""; }