207740 LaunchConfigurationQueryParticipant should only be active for types
diff --git a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/search/LaunchConfigurationQueryParticipant.java b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/search/LaunchConfigurationQueryParticipant.java
index 0fb377f..79cc401 100644
--- a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/search/LaunchConfigurationQueryParticipant.java
+++ b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/search/LaunchConfigurationQueryParticipant.java
@@ -182,7 +182,8 @@
 			}
 		}
 		if (query instanceof ElementQuerySpecification) {
-			return ((ElementQuerySpecification) query).getElement().getElementType() == IJavaElement.TYPE;
+			IJavaElement element = ((ElementQuerySpecification) query).getElement();
+			return element.getElementType() == IJavaElement.TYPE || element.getElementType() == IJavaElement.METHOD;
 		}
 		if (query instanceof PatternQuerySpecification) {
 			PatternQuerySpecification patternQuery = (PatternQuerySpecification) query;