Type (@NotNull Editor editor, @Nullable Language language) { if (language != null) { CommonCodeStyleSettings settings = CodeStyle.getSettings(editor).getCommonSettings(language); if (settings.BRACE_STYLE == CommonCodeStyleSettings.NEXT_LINE || settings.BRACE_STYLE == CommonCodeStyleSettings.END_OF_LINE) { return NONE; } } return null; }