package com.github.stokito.IdeaSingletonInspection;

import com.intellij.codeInsight.daemon.GroupNames;
import com.intellij.codeInspection.BaseJavaLocalInspectionTool;
import com.intellij.codeInspection.ProblemsHolder;
import com.intellij.codeInspection.ui.MultipleCheckboxOptionsPanel;
import com.intellij.psi.PsiElementVisitor;
import org.jetbrains.annotations.NotNull;

import javax.swing.*;

public class SingletonInspection extends BaseJavaLocalInspectionTool {

  @SuppressWarnings({"PublicField"})
  public boolean m_checkFinal = false;

  @NotNull
  @Override
  public PsiElementVisitor buildVisitor(@NotNull final ProblemsHolder holder, final boolean isOnTheFly) {
    return new SingletonInspectionVisitor(holder, m_checkFinal);
  }


  @Override
  public JComponent createOptionsPanel() {
    final MultipleCheckboxOptionsPanel optionsPanel = new MultipleCheckboxOptionsPanel(this);
    optionsPanel.addCheckbox("Check that singletons are final", "m_checkFinal");
    return optionsPanel;
  }

}

@@ -50,59 +50,8 @@
 n;%0A%0A
-import com.intellij.codeInsight.daemon.GroupNames;%0A
 impo
@@ -686,17 +686,16 @@
 );%0A  %7D%0A%0A
-%0A
   @Overr

Reformat code