public static @Nullable PsiElement findSingleConditionalReturn(@NotNull PsiFile file, int line) {
    // Decompiled binary classfiles have no one-liners, so all these checks are pointless for them.
    // This check is expected to fix problems like IDEA-339925.
    if (file.getFileType().isBinary()) return null;

    Project project = file.getProject();
    return ReadAction.compute(() -> {
      Document document = file.getViewProvider().getDocument();
      return document != null ? findSingleConditionalReturn(project, document, line) : null;
    });
  }
public static @Nullable PsiElement findSingleConditionalReturn(@NotNull PsiFile file, int line)