package com.intellij.structuralsearch.impl.matcher.filters;

import com.intellij.dupLocator.util.NodeFilter;
import com.intellij.psi.PsiDocCommentOwner;
import com.intellij.psi.PsiElement;
import com.intellij.psi.javadoc.PsiDocComment;

/**
 * Created by IntelliJ IDEA.
 * User: maxim
 * Date: 26.12.2003
 * Time: 19:08:26
 * To change this template use Options | File Templates.
 */
public class JavaDocFilter implements NodeFilter {
  protected boolean result;

  public boolean accepts(PsiElement element) {
    return element instanceof PsiDocCommentOwner ||
      element instanceof PsiDocComment;
  }

  private static class NodeFilterHolder {
    private static final NodeFilter instance = new JavaDocFilter();
  }

  public static NodeFilter getInstance() {
    return NodeFilterHolder.instance;
  }

  private JavaDocFilter() {
  }
}

package com.intellij.structuralsearch.impl.matcher.filters;

import com.intellij.dupLocator.util.NodeFilter;
import com.intellij.psi.PsiDocCommentOwner;
import com.intellij.psi.PsiElement;
import com.intellij.psi.javadoc.PsiDocComment;

/**
 * Created by IntelliJ IDEA.
 * User: maxim
 * Date: 26.12.2003
 * Time: 19:08:26
 * To change this template use Options | File Templates.
 */
public class JavaDocFilter implements NodeFilter {

  public boolean accepts(PsiElement element) {
    return element instanceof PsiDocCommentOwner || element instanceof PsiDocComment;
  }

  private static class NodeFilterHolder {
    private static final NodeFilter instance = new JavaDocFilter();
  }

  public static NodeFilter getInstance() {
    return NodeFilterHolder.instance;
  }

  private JavaDocFilter() {
  }
}

remove unused field