public static PsiMethodCallExpressionExtractor createExpressionExtractor( CodeInsightTestFixture fixture) { Caret currentCaret = getCaret(fixture); return ExtractorFactory.createMethodCallExpressionExtractor( fixture.getFile(), currentCaret.getSelectionStart(), currentCaret.getSelectionEnd()); }
public static PsiStatementExtractor createStatementExtractor(JavaCodeInsightTestFixture fixture) { Caret currentCaret = getCaret(fixture); return ExtractorFactory.createStatementExtractor( fixture.getFile(), currentCaret.getSelectionStart(), currentCaret.getSelectionEnd()); }