@Nullable
  private UnusedDeclarationInspectionBase getDeadCodeTool(RefElement element) {
    PsiFile file = ((RefElementImpl)element).getContainingFile();
    if (file == null) return null;

    return getDeadCodeTool(file);
  }
@Nullable
  private UnusedDeclarationInspectionBase getDeadCodeTool(RefElement element)