PsiClass () { return ReadAction.compute(() -> { try { final GrTypeElement typeElement = GroovyPsiElementFactory.getInstance(getProject()).createTypeElement(myContainingClassName); return typeElement.getType() instanceof PsiClassType type ? type.resolve() : null; } catch (IncorrectOperationException e) { LOG.error(e); return null; } }); }