void (@NotNull YAMLScalar scalarValue, @NotNull ProblemsHolder holder) { try { if (!myQuotedValuesAllowed && scalarValue instanceof YAMLQuotedText) { throw new NumberFormatException("no quoted values allowed"); } Long.parseLong(scalarValue.getTextValue()); } catch (NumberFormatException e) { holder.registerProblem(scalarValue, YAMLBundle.message("YamlIntegerType.error.integer.value"), ProblemHighlightType.ERROR); } }