void () { myFixture.configureByText(JsonFileType.INSTANCE, "{\"firs<caret>t\" : 1, \"second\" : 2}"); PsiElement atCaret = myFixture.getFile().findElementAt(myFixture.getCaretOffset()); JsonProperty property = PsiTreeUtil.getParentOfType(atCaret, JsonProperty.class); assertNotNull(property); assertEquals(Collections.singleton("second"), JsonPsiUtil.getOtherSiblingPropertyNames(property)); }