void (final String className) { final PsiFile psiFile = ReadAction.compute(() -> { PsiClass psiClass = JavaPsiFacade.getInstance(myProject).findClass(className, GlobalSearchScope.allScope(myProject)); assertNotNull(className, psiClass); return psiClass.getContainingFile(); }); createBreakpoints(psiFile); }