SearchPattern.R_FULL_MATCH | SearchPattern.R_ERASURE_MATCH,
PHPLanguageToolkit.getDefault()
),
new SearchParticipant[]{ SearchEngine.getDefaultSearchParticipant() },
SearchEngine.createSearchScope(modelElement.getScriptProject()),
new SearchRequestor() {
@Override
public void acceptSearchMatch(final SearchMatch match) throws CoreException {
if (match instanceof MethodReferenceMatch && ((MethodReferenceMatch) match).getNode() instanceof PHPCallExpression && match.getElement() instanceof IModelElement) {
final ISourceModule module = (ISourceModule) ((IModelElement) match.getElement()).getAncestor(IModelElement.SOURCE_MODULE);
if (module != null && RefactoringAvailabilityTester.isRenameAvailable(module)) {