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() {
  }
}

@@ -431,36 +431,8 @@
 er %7B
-%0A  protected boolean result;
 %0A%0A  
@@ -531,14 +531,8 @@
 r %7C%7C
-%0A     
  ele

remove unused field