/*
 * Copyright 2000-2009 JetBrains s.r.o.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.intellij.psi.search.searches;

import com.intellij.openapi.extensions.ExtensionPointName;
import com.intellij.psi.PsiMethod;
import com.intellij.util.Query;
import com.intellij.util.QueryExecutor;

/**
 * @author max
 */
public class DeepestSuperMethodsSearch extends ExtensibleQueryFactory<PsiMethod, PsiMethod> {
  public static ExtensionPointName<QueryExecutor> EP_NAME = ExtensionPointName.create("com.intellij.deepestSuperMethodsSearch");
  public static final DeepestSuperMethodsSearch DEEPEST_SUPER_METHODS_SEARCH_INSTANCE = new DeepestSuperMethodsSearch();

  private DeepestSuperMethodsSearch() {
  }

  public static Query<PsiMethod> search(PsiMethod method) {
    return DEEPEST_SUPER_METHODS_SEARCH_INSTANCE.createQuery(method);
  }
}

@@ -641,67 +641,8 @@
 s;%0A%0A
-import com.intellij.openapi.extensions.ExtensionPointName;%0A
 impo
@@ -707,48 +707,8 @@
 ery;
-%0Aimport com.intellij.util.QueryExecutor;
 %0A%0A/*
@@ -826,137 +826,8 @@
 %3E %7B%0A
-  public static ExtensionPointName%3CQueryExecutor%3E EP_NAME = ExtensionPointName.create(%22com.intellij.deepestSuperMethodsSearch%22);%0A
   pu
@@ -984,16 +984,56 @@
 rch() %7B%0A
+    super(%22org.consule.java.platform%22);%0A
   %7D%0A%0A  p

fix IllegalArgumentException