ProcessingContext context,
@NotNull CompletionResultSet resultSet)
{
PsiElement method = parameters.getPosition().getParent();
assert method instanceof PsiPerlMethod;
<BUG>String packageName = ((PsiPerlMethod) method).getPackageName();
Project project = parameters.getPosition().getProject();</BUG>
for (PerlSubDefinitionBase subDefinition : PerlSubUtil.getSubDefinitions(project, "*" + packageName))
{
if (subDefinition.isStatic())

ProcessingContext context,
@NotNull CompletionResultSet resultSet)
{
PsiElement method = parameters.getPosition().getParent();
assert method instanceof PsiPerlMethod;
String packageName = ((PsiPerlMethod) method).getPackageName();
if (packageName == null)
{
return;
}
Project project = parameters.getPosition().getProject();
for (PerlSubDefinitionBase subDefinition : PerlSubUtil.getSubDefinitions(project, "*" + packageName))
{
if (subDefinition.isStatic())
