PerlNamespaceElement namespaceElement = ((PsiPerlMethod) method).getNamespaceElement();
boolean isSuper = namespaceElement != null && namespaceElement.isSUPER();
if (isSuper)
{
packageName = PerlPackageUtil.getContextPackageName(method);
<BUG>}
for (PsiElement element : PerlMro.getVariants(method.getProject(), packageName, isSuper))</BUG>
{
if (element instanceof PerlSubDefinitionBase && ((PerlSubDefinitionBase) element).isMethod())
{

PerlNamespaceElement namespaceElement = ((PsiPerlMethod) method).getNamespaceElement();
boolean isSuper = namespaceElement != null && namespaceElement.isSUPER();
if (isSuper)
{
packageName = PerlPackageUtil.getContextPackageName(method);
}
if (packageName == null)
{
return;
}
for (PsiElement element : PerlMro.getVariants(method.getProject(), packageName, isSuper))
{
if (element instanceof PerlSubDefinitionBase && ((PerlSubDefinitionBase) element).isMethod())
{
