private static PsiClass getClassToSearch(@NotNull DirectClassInheritorsSearch.SearchParameters parameters) {
    return ReadAction.compute(() -> (PsiClass)PsiUtil.preferCompiledElement(parameters.getClassToProcess()));
  }
private static PsiClass getClassToSearch(@NotNull DirectClassInheritorsSearch.SearchParameters parameters)