private boolean shouldIgnore(@NotNull PsiModifierListOwner element) {
    if (myAnnotateLocalVariables) return false;
    if (element instanceof PsiLocalVariable) return true;
    if (element instanceof PsiParameter parameter && parameter.getDeclarationScope() instanceof PsiForeachStatement) return true;
    return false;
  }
private boolean shouldIgnore(@NotNull PsiModifierListOwner element)