void () { runPythonTest(new PyDebuggerTask("/debug", "test_ref.py") { @Override public void before() { toggleBreakpoint(getFilePath(getScriptName()), 3); } private static @Nullable String getRefWithWordInName(List<String> referrersNames, String word) { return ContainerUtil.find(referrersNames, x -> x.contains(word)); } @Override public void testing() throws Exception { waitForPause(); List<String> referrersNames = getNumberOfReferringObjects("l"); assertNotNull(getRefWithWordInName(referrersNames, "module")); assertNotNull(getRefWithWordInName(referrersNames, "dict")); } @NotNull @Override public Set<String> getTags() { return Collections.singleton("-iron"); } }); }