PsiElement (@Nullable PsiElement target) { if (!(target instanceof PsiDirectory psiDirectory)) return target; final PsiFile initStub = psiDirectory.findFile(PyNames.INIT_DOT_PYI); if (initStub != null && !PyiStubSuppressor.isIgnoredStub(initStub)) { return initStub; } return null; }