diff --git a/json/src/com/intellij/json/JsonUtil.java b/json/src/com/intellij/json/JsonUtil.java index e07f9bea70e6..f260e0413593 100644 --- a/json/src/com/intellij/json/JsonUtil.java +++ b/json/src/com/intellij/json/JsonUtil.java @@ -73,9 +73,8 @@ public final class JsonUtil { return -1; } - @Contract(value = "null -> null") - @Nullable - public static JsonObject getTopLevelObject(@Nullable JsonFile jsonFile) { + @Contract("null -> null") + public static @Nullable JsonObject getTopLevelObject(@Nullable JsonFile jsonFile) { return jsonFile != null ? ObjectUtils.tryCast(jsonFile.getTopLevelValue(), JsonObject.class) : null; }