void () { runTest(new SkeletonsTask() { @Override protected void runTestOn(@NotNull Sdk sdk) { final Project project = myFixture.getProject(); ApplicationManager.getApplication().runReadAction(() -> { PyFile builtins = PyBuiltinCache.getBuiltinsForSdk(project, sdk); if (builtins instanceof PyiFile) { builtins = (PyFile)PyiUtil.getOriginalElement(builtins); } assertNotNull(builtins); final PyClass cls = builtins.findTopLevelClass("int"); assertNotNull(cls); final Property prop = cls.findProperty("real", true, null); assertNotNull(prop); assertIsNotNull(prop.getGetter()); assertIsNotNull(prop.getSetter()); assertIsNotNull(prop.getDeleter()); }); } private void assertIsNotNull(Maybe<PyCallable> accessor) { if (accessor.isDefined()) { assertNotNull(accessor.valueOrNull()); } } }); }