package de.plushnikov.intellij.plugin.intention;

import com.intellij.codeInsight.intention.PsiElementBaseIntentionAction;
import com.intellij.openapi.editor.Editor;
import com.intellij.openapi.project.Project;
import com.intellij.psi.PsiElement;
import de.plushnikov.intellij.plugin.settings.ProjectSettings;
import org.jetbrains.annotations.NotNull;

public abstract class AbstractLombokIntentionAction extends PsiElementBaseIntentionAction {

  @Override
  public boolean isAvailable(@NotNull Project project, Editor editor, @NotNull PsiElement element) {
    return ProjectSettings.isLombokEnabledInProject(project);
  }
}

@@ -240,16 +240,94 @@
 lement;%0A
+import de.plushnikov.intellij.plugin.activity.LombokProjectValidatorActivity;%0A
 import d
@@ -690,16 +690,76 @@
 project)
+ && LombokProjectValidatorActivity.hasLombokLibrary(project)
 ;%0A  %7D%0A%7D%0A

disable val/var suggestions if no lombok is attached