private static @Nullable Module getModuleForContext(@NotNull PsiFileSystemItem context) {
    VirtualFile file = context.getVirtualFile();
    return file != null ? ModuleUtilCore.findModuleForFile(file, context.getProject()) : null;
  }
private static @Nullable Module getModuleForContext(@NotNull PsiFileSystemItem context)