boolean (@NotNull final PsiMethodCallExpression call) { final PsiExpressionList params = call.getArgumentList(); if (params.getExpressionCount() == 1) { return !containsNewlineToken(params.getExpressions()[0]); } else if (params.getExpressionCount() == 2) { final PsiExpression firstArg = params.getExpressions()[0]; if (firstArg.getType() == null || !firstArg.getType().equalsToText(Locale.class.getName())) return false; return !containsNewlineToken(params.getExpressions()[1]); } return false; }